Help us understand the problem. What is going on with this article?

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

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のコンテナでセットアップするときにキャッシュが悪さをしているようですがよくわかってません(よくわかってない)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away