简体   繁体   English

GitHub Packages Docker - 拉取镜像配置时出错:未知 blob

[英]GitHub Packages Docker - Error pulling image configuration: unknown blob

GitHub packages started returning error pulling image configuration: unknown blob this weekend when trying to pull docker images. GitHub 包开始返回error pulling image configuration: unknown blob本周末尝试拉取 docker 映像时出现error pulling image configuration: unknown blob It still works to push images to the registry.它仍然可以将图像推送到注册表。 I haven't found any infromation pointing to problems at GitHub.我没有发现任何指向 GitHub 问题的信息。

000eee12ec04: Pulling fs layer
db438065d064: Pulling fs layer
e345d85b1d3e: Pulling fs layer
f6285e273036: Waiting
2354ee191574: Waiting
69189c7cf8d6: Waiting
771c701acbb7: Waiting
error pulling image configuration: unknown blob

How do I troubleshoot this?我该如何解决这个问题?

This is the result of a failed push where the push appears to have been successful but something went wrong on the registry side and something is missing.这是推送失败的结果,其中推送看似成功,但注册表方面出现问题并且缺少某些内容。

To fix it build your container again and push it again.要修复它,请再次构建您的容器并再次推送它。

While this is likely a rare situation it would be possible to test for this by deleting your image locally after pushing and pulling it again to ensure pulls work as expected.虽然这可能是一种罕见的情况,但可以通过在再次推拉图像后在本地删除图像来测试这一点,以确保拉动按预期工作。

One possible cause of failure of pulling or pushing image layer is the unreliable network connection outlined in this blog .拉或推图像层失败的一个可能原因是本博客中概述的不可靠的网络连接。 By default docker engine has 5 parallel upload operations.默认情况下,docker 引擎有5并行上传操作。

You can update the docker engine to only use single upload or download operation by specifying values for max-concurrent-downloads for download or max-concurrent-uploads for upload.您可以通过为下载指定max-concurrent-downloads downloads 或max-concurrent-uploads值来更新 docker 引擎以仅使用单个上传或下载操作。

On windows, you should update via C:\\Users\\{username}\\.docker\\daemon.json or via the Docker for Desktop GUI:在 Windows 上,您应该通过C:\\Users\\{username}\\.docker\\daemon.json或通过 Docker for Desktop GUI 进行更新:


    {
      ...
      "max-concurrent-uploads": 1
    }

On *Nix , open /etc/docker/daemon.json (If the daemon.json file doesn't exist in /etc/docker/ , create it.) and add following values as needed:*Nix ,打开/etc/docker/daemon.json (如果daemon.json文件在/etc/docker/ daemon.json /etc/docker/中不存在,则创建它。)并根据需要添加以下值:

{
    ...
    "max-concurrent-uploads": 1
}

And restart daemon.并重新启动守护进程。

Note: Currently this is not possible to specify these options in docker push or docker pull command as per this post .注意:目前无法按照这篇文章docker pushdocker pull命令中指定这些选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM