ブログ
Dockerでphp:7.4-fpmでapt-get updateでエラー
php:5.4-fpmで出てる方もいるし、私のようにlatestででる人もいるみたいです。
ちなみにDockerfileはこんな感じです。
FROM php:7.4-fpm RUN apt-get update && apt-get install -y \ libzip-dev \ && docker-php-ext-install pdo_mysql zip
ここからは多分ですが、imageの積み重ねなので古いイメージは書き換わらないから
古いGPGキーのままだったんでしょうね。
ということで以下のコマンドを試してみました。(若干理解が違うかもしれませんが。。。)
$ docker image prune $ docker container prune
docker-compose up -dで出力したエラーは以下です。
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:2 http://deb.debian.org/debian buster InRelease [122 kB] Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB] Err:1 http://security.debian.org/debian-security buster/updates InRelease At least one invalid signature was encountered. Err:2 http://deb.debian.org/debian buster InRelease At least one invalid signature was encountered. Err:3 http://deb.debian.org/debian buster-updates InRelease At least one invalid signature was encountered. Reading package lists... W: GPG error: http://security.debian.org/debian-security buster/updates InRelease: At least one invalid signature was encountered. E: The repository 'http://security.debian.org/debian-security buster/updates InRelease' is not signed. W: GPG error: http://deb.debian.org/debian buster InRelease: At least one invalid signature was encountered. E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed. W: GPG error: http://deb.debian.org/debian buster-updates InRelease: At least one invalid signature was encountered. E: The repository 'http://deb.debian.org/debian buster-updates InRelease' is not signed.
関連記事
2024.09.30
2024.09.30
2024.04.08