0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

dockerでapt-get update -qqをしたら失敗した話

0
Posted at

起こった事象

  • docker-compose run *** でコマンドを実行した際に次のエラーが発生した。
GPG error: http://security.debian.org/debian-security bullseye-security InRelease: At least one invalid signature was encountered.
  • Dockerfileの2行目でエラーになっていた。
1. FROM ruby:2.7.5
2. RUN apt-get update -qq
...

試したこと

解決方法

  • 最終的に下記の方法で解決しました。
    docker pull ruby:2.7.5

下記のサイトの一番最初に書いてあったのですが、見落として
色々回り道してしまいましたが、元イメージが最新でなかったのが
原因でdockerから最新のイメージをpullすれば良いという
単純な結論でした。

下記を参考
https://nice-mikan.hatenablog.jp/entry/2020/07/30/013517

参考

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?