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?

DevContainer使っていたらGitHub Container Registryに怒られた

Posted at

概要

色々コンテナ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 なので認証不要なんだけど、これは…

対応策

  1. ghcrへloginしよう!
  2. ゲームして6時間待つ!
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?