DockerHub で docker イメージの継続的デリバリを行うために automated build 機能を使っている。
Set up automated builds | Docker Documentation
数年間使い続けているが初めてタイトルの現象を目にしたので記録しておく。
現象
master ブランチ更新時に latest イメージを作成しているのだが、2日前に作成されたイメージが以下の画像。
このイメージを利用しているホスト(Web App for Container) 側のログは以下。
2020-09-27T01:41:08.455Z ERROR - DockerApiException: Docker API responded with status code=NotFound, response={"message":"pull access denied for `organization/repo`, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"} 2020-09-27T01:41:08.457Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)
パッと見だと認証周りのエラーに勘違いしてしまったが、 docker image が NotFound
だった、ということだった模様。
対処
Latest イメージをビルドし直して解決したが、これはプラットフォーム側で解決してほしい。