docker ERROR: unknown blob

On launching app using docker getting message ERROR: unknown blob as per

docker-compose -f /usr/local/tmp/khufu01/loud_deploy/nokube/dind/docker-compose.yml up -d Pulling myimage(localhost:5000/forelsket/myimage:latest)... latest: Pulling from forelsket/myimage 50aff78429b1: Pulling fs layer f6d82e297bce: Pulling fs layer fdd34fec4c74: Pulling fs layer 151b5e27e3b4: Pulling fs layer d477e9b677eb: Pulling fs layer 7e8156598779: Download complete ca2064fc9543: Download complete ERROR: unknown blob 

after adding flag --verbose to my docker-compose call it now shows

docker-compose --verbose -f /usr/local/tmp/khufu01/loud_deploy/nokube/dind/docker-compose.yml up -d Pulling myimage(localhost:5000/forelsket/myimage:latest)... latest: Pulling from forelsket/myimage 50aff78429b1: Pulling fs layer f6d82e297bce: Pulling fs layer fdd34fec4c74: Pulling fs layer 151b5e27e3b4: Pulling fs layer d477e9b677eb: Pulling fs layer 7e8156598779: Download complete ca2064fc9543: Download complete ERROR: compose.cli.main.main: unknown blob 

this is on linux using latest docker

docker 18.02.0-ce-rc2 Kernel Version: 4.4.0-112-generic Operating System: Ubuntu 16.04.3 LTS OSType: linux Architecture: x86_64 

seems strange as this app ran fine this morning ... I am using a local docker repository of registry:2 at localhost:5000

1

2 Answers

Solution ERROR: unknown blob is trying to say one or more layers of the image is not found

... this makes sense since earlier today all local docker images were deleted

So after building the missing image the docker-compose up ran fine

Goes without saying this error can be avoided if a preliminary step first determines whether the image even exists in chosen image repository

3

In my case removing /var/lib/docker made things worse - pulling failed with

$ docker-compose up -d Pulling mysql-service (mysql:5.7.17)... 5.7.17: Pulling from library/mysql 6d827a3ef358: Pulling fs layer ed0929eb7dfe: Pulling fs layer 03f348dc3b9d: Pulling fs layer fd337761ca76: Waiting 7e6cc16d464a: Waiting ca3d380bc018: Waiting 3fe11378d5c0: Waiting 2b5dfd325645: Waiting b54281d17fbe: Waiting 7eae4db8eea5: Waiting 76cf68e17b09: Waiting ERROR: open /var/lib/docker/tmp/GetImageBlob310458906: no such file or directory 

Purging docker solved the problem.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like