Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker pull shows "Unknown blob"

I'm trying to pull microsoft/aspnet image. It tries to download something and shows the progress. But then it shows an error - "Unknown blob".

enter image description here

How I can solve this?

P.S. I have docker client and server v1.12.2

like image 998
Vnuuk Avatar asked Nov 02 '16 08:11

Vnuuk


People also ask

How do you resolve the unknown blob error when pulling from Quay io?

You should temporarily enable this logger for debugging purposes, then remove it. Once you have enabled the above logger, run the docker pull command again. In that case, you should whitelist the 'SOME.quay.URL.com' URL and this will resolve the "Unkown blob" error.

How do you purge docker?

If you know when you're creating a container that you won't want to keep it around once you're done, you can run docker run --rm to automatically delete it when it exits: Run and Remove: docker run --rm image_name.


3 Answers

The problem is not Windows/Linux cross compatibility. A Linux client can pull Windows images, though it cannot actually launch them.

The issue 'unknown blob' is most likely image corruption. Refer to other answer that mentioned that your image name is deprecated.

like image 193
Slack Flag Avatar answered Sep 17 '22 00:09

Slack Flag


Your docker version is 1.12.2 which does not supports Windows Containers, which means you are running Linux Containers in the VM. And you are pulling a Windows container based image so either update your docker to the 1.13.0 beta version which supports Windows Containers and pull this image or find a linux based image of .Net.

To see how to switch to Windows Containers, see this GIF

like image 26
Ali Kahoot Avatar answered Sep 18 '22 00:09

Ali Kahoot


try
docker pull microsoft/aspnetcore

Microsoft changed the names of their Docker Hub Repos in the last months so it is not so easy to find the right ones.

like image 43
Falco Alexander Avatar answered Sep 21 '22 00:09

Falco Alexander