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

Alpine Linux を使った docker ビルドの最中に出る WARNING 対応

More than 1 year has passed since last update.

Alpine Linux を docker ビルドする際の WARNING 対応

Alpine Linux を使って docker ビルドをすると下記のような WARNING がビルド中に出ることがあります。

WARNING: Ignoring APKINDEX.adfa7ceb.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.efaa1f73.tar.gz: No such file or directory

解決策

apk のレポジトリ情報が古いからということで、アップデートすれば解決するようです。
下記の RUN apk update を ENV の後の RUN の前に入れるとよいかと思います。

Dockerfile
FROM alpine:3.8

ENV ・・・・・
ENV ・・・・・
ENV ・・・・・

RUN apk update

終わりに

普通の Linux もインストール前にレポジトリのアップデートしてから使うので、alpine も同じくというところでしょうか。

参照

apk WARNING Ignoring APKINDEX No such file or directory

Why do not you register as a user and use Qiita more conveniently?
  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