Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 862
adamfinstorp Avatar asked Nov 25 '19 09:11

adamfinstorp


2 Answers

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.

like image 136
Jacob Tomlinson Avatar answered Sep 18 '22 14:09

Jacob Tomlinson


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.

like image 33
Rajesh Swarnkar Avatar answered Sep 18 '22 14:09

Rajesh Swarnkar