在过去的两天里,我无法从 GitHub 容器注册表 (GHCR) 中提取任何映像。公共图像和私有图像都会出现此问题。我尝试过使用 CMD 和 Windows 终端,但没有成功。不过,我可以正常从 Docker Hub 拉取镜像。
我使用的命令是这样的:
docker pull ghcr.io/someorg/someimage:sometag
Run Code Online (Sandbox Code Playgroud)
我得到的错误是这样的:
来自守护进程的错误响应:头“https://ghcr.io/v2/someorg/someimage/manifests/sometag”:拒绝:拒绝
其仅表示“拒绝”,但未提供任何原因解释。经过大量搜索,我只找到了 GitHub 上的一个问题,指出这是一个平台问题,已解决。
containers github docker docker-image github-container-registry
当尝试将 Github Registry 添加到 Synology Docker 时,我总是收到一条提示“Registry returned bad result”。
我尝试连接的 URL 是:https://ghcr.io
我正在将 docker 镜像发布到 GitHub 容器注册表 (ghcr.io)。
这样做的过程:
有时,步骤 4 或 5 会返回无法从 Docker 映像内解决的错误,问题解决后,我需要重新部署并重新测试工件。
如果发生这种情况,构建组件的过程(包括 junit 测试)会很痛苦,因为 Docker 映像已经构建并存在于 ghcr.io 上。
有没有办法查看 ghcr.io 中是否存在标记的 Docker 映像?
我想知道哪些图像上传到了 GitHub 容器注册表中的特定所有者。容器是这样引用的:https://ghcr.io/OWNER/<imageName>:<imageTag>
我已将映像推送到 Github 容器注册表 (GHCR) 并将其公开。当我尝试拉它时,出现错误(我已经完成了docker login)。
docker pull ghcr.io/username/reponame:master
我收到的错误:
Error response from daemon: Head "https://ghcr.io/v2/username/reponame/manifests/master": denied: denied
我找不到有关此错误的太多信息,但这篇文章描述了相同的问题: https: //github.com/orgs/community/discussions/27116。然而,仅仅等待对我来说没有用。
github docker github-package-registry github-container-registry
当我尝试时:
docker push ghcr.io/username/imagename:latest
Run Code Online (Sandbox Code Playgroud)
根据GitHub 文档,我明白了
unauthorised: unauthenticated: User cannot be authenticated with the token provided.
Run Code Online (Sandbox Code Playgroud)
如何将图像推送到 ghcr?