Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker pull: Failed to register layer #14

Open
prestonvanloon opened this issue Jan 11, 2017 · 7 comments
Open

Docker pull: Failed to register layer #14

prestonvanloon opened this issue Jan 11, 2017 · 7 comments

Comments

@prestonvanloon
Copy link

docker pull  microsoft/mssql-server-linux
Using default tag: latest
latest: Pulling from microsoft/mssql-server-linux
aed15891ba52: Already exists
773ae8583d14: Extracting [==================================================>]    823 B/823 B
d1d48771f782: Download complete
cd3d6cd6c0cf: Download complete
8ff6f8a9120c: Download complete
1fd7e8b10447: Download complete
bd485157db89: Download complete
273a1970ce9c: Download complete
d2d0b4dc209f: Download complete
failed to register layer: open /home/docker/aufs/layers/979db2360ccddf7f589f2478dc9eefcb6a7dad27fed64767aeeb5b09daa9c270: no such file or directory
docker --version
Docker version 1.12.5, build 7392c3b
uname -a
Linux DESKTOP-TSOA72N 3.13.0-106-generic #153-Ubuntu SMP Tue Dec 6 15:44:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

You can see that the second layer never finishes extracting.

@LuisBosquez
Copy link
Contributor

@prestonvanloon this seems to me like a transient/network error. I was able to pull the image fine just now. Are you still experiencing this issue?

@prestonvanloon
Copy link
Author

prestonvanloon commented Jan 15, 2017

Hi @LuisBosquez, I'm still having the same issue.

➜  ~ docker pull  microsoft/mssql-server-linux
Using default tag: latest
latest: Pulling from microsoft/mssql-server-linux

aed15891ba52: Already exists 
773ae8583d14: Extracting    823 B/823 B
d1d48771f782: Download complete 
cd3d6cd6c0cf: Download complete 
8ff6f8a9120c: Download complete 
1fd7e8b10447: Download complete 
bd485157db89: Download complete 
273a1970ce9c: Download complete 
d2d0b4dc209f: Download complete 
failed to register layer: open /home/docker/aufs/layers/f464057d7bca9ae166ab8501bf94553ff84abf0c1dda4eb0e6dd96976c0cf422: no such file or directory
➜  ~ docker --version
Docker version 1.12.5, build 7392c3b
➜  ~ uname -a
Linux DESKTOP-TSOA72N 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
➜  ~ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty

@LuisBosquez
Copy link
Contributor

@prestonvanloon Is there a firewall of some sort in your network? Have you had the similar issues with other images?

I will try to repro this with Ubuntu 14.04.5 and get back to you.

@prestonvanloon
Copy link
Author

prestonvanloon commented Jan 18, 2017

@LuisBosquez, no firewall. It pulls fine on Mac on same network.
It's pretty weird that it gets stuck on that one layer.

@LuisBosquez
Copy link
Contributor

I have tried this on Ubuntu 14.04.5 and it worked. My only guess is that Docker Engine is not up to date:

docker --version
Docker version 1.13.0, build 49bf474

Can you try updating Docker Engine?

@prestonvanloon
Copy link
Author

prestonvanloon commented Jan 20, 2017

Hi @LuisBosquez,

I am using a non-standard docker root and this is the difference between our environments.

Here's exactly how to repo:

sudo service docker stop
mkdir /home/docker # On my machine, /home is a larger provision than /var/lib
sudo dockerd -g /home/docker 
# Open a new prompt
docker pull  microsoft/mssql-server-linux

So what I see in the daemon is:

ERRO[0043] Error releasing layer sha256:e7ebc6e16708285bee3917ae12bf8d172ee0d7684a7830751ab9a1c070e7a125: no such file or directory 
ERRO[0043] Error trying v2 registry: failed to register layer: open /home/docker/aufs/layers/f464057d7bca9ae166ab8501bf94553ff84abf0c1dda4eb0e6dd96976c0cf422: no such file or directory 
ERRO[0043] Attempting next endpoint for pull after error: failed to register layer: open /home/docker/aufs/layers/f464057d7bca9ae166ab8501bf94553ff84abf0c1dda4eb0e6dd96976c0cf422: no such file or directory 

Is there any layer expecting to be in the default /var/lib/docker directory?

@AndrewLaBabies
Copy link

I met similar problem when extracting, but not for mssql-docker project.

486a0428485d: Extracting [==================================================>]  68.02MB/68.02MB
ERROR: failed to register layer: Error processing tar file(exit status 1): chtimes /source-map: no such file or directory

I solved the problem by delete the docker volume, hope it can help.

docker volume list

docker rm xxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants