LoginSignup
38
18

More than 3 years have passed since last update.

DockerのbuildでThe command 'apt-get install ' returned a non-zero code: 100 となった時の対処法

Last updated at Posted at 2016-07-11

docker-compose build時に

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/sh -c apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev git'
returned a non-zero code: 100

とエラーが出て困ったのでメモ。

該当コンテナのDockerfileの中から

RUN apt-get update

RUN apt-get install -y \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng12-dev \
    git

を見つけ出して

RUN apt-get update && apt-get install -y \
    libfreetype6-dev \
    libjpeg62-turbo-dev \
    libpng12-dev \
    git

と変更してみたらうまくいきました。

参考: http://lenguyenthedat.com/docker-cache/
記事曰く、Dockerのコンテナでセットアップするときにキャッシュが悪さをしているようですがよくわかってません(よくわかってない)

38
18
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
18