概要
色々コンテナbuildしていたらGitHub Container RegistryのLate Limitに達してしまい devcontainerのbuild中にエラーとして表示されていただけだった
どうしようもないのでゲームする…
エラー内容
devcontainerで開発環境を作っていたら
failed to solve: failed to resolve source metadata for docker.io/library/dev_containers_feature_content_normalize:latest: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
今まで使えていたghcr.io/devcontainers/features/github-cli
が急に認証エラーになりdevcontainerのbuildが進まない状態になっていた…
色々調べると
Dockerが悪いんだの、DockerDesktopの設定がわるいだのMicroSoftのDNSの設定が悪いだの出てきましたが、
ghcrへアクセスできるか試したら、
$ curl -I https://ghcr.io/v2/devcontainers/features/github-cli/manifests/1
HTTP/2 401
content-type: application/json
www-authenticate: Bearer realm="https://ghcr.io/token",service="ghcr.io",scope="repository:devcontainers/features/github-cli:pull"
date: Mon, 21 Apr 2025 15:26:52 GMT
content-length: 73
x-github-request-id: 1B4B:52F97:206165:2B4E3D:680663BC
通常は public な feature なので認証不要なんだけど、これは…
対応策
- ghcrへloginしよう!
- ゲームして6時間待つ!