简体   繁体   中英

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. It still works to push images to the registry. I haven't found any infromation pointing to problems at 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.

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.

On windows, you should update via C:\\Users\\{username}\\.docker\\daemon.json or via the 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:

{
    ...
    "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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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