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
"Error response from daemon: layer does not exist" when performing "docker images" concurrently to image creation #21215
Comments
Sounds like /cc @cpuguy83 @tonistiigi any thoughts? |
I ran into the same thing on 1.11.1 while doing |
@vikstrous can you try to reproduce on the 1.11.2 release candidate? We fixed some locking issues in that, possibly it's resolved |
It still happens at least with my repro... On overlayfs deletions take longer, so that might be a factor in my case.
Here are the steps:
I would say this particular behaviour is not a real problem because you can just wait until |
Just stumbled across this myself. While cleaning up old images and containers, the system was not only unable to list available images, but also to create new containers based on images that where still completely available. So I'd say it has implications. This is 1.11.2, running on Ubuntu Xenial. |
Automatic merge from submit-queue (batch tested with PRs 38888, 38895) InodeEviction Test failing because of docker race condition. The inode eviciton test was failing because of a bug in moby/moby#21215. Inode eviction test triggers garbage collection of images, which causes an error if kubernetes tries to "docker images list" at the same time. This is not relevant to the inode eviction test, so do not cause the test to fail if this race occurs. @Random-Liu
I had this same issue. |
just had the same issue but fixed it by doing following:
|
I faced the issue while using overlayfs (overlay2). It was unable to rename one of the layer and was giving this error at the end. Fixed it by restarting docker. |
Is this question connected to this issue? |
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Physical machine.
Steps to reproduce the issue:
This can be reproduced by running the following two scripts at the same time -
And, at the same time -
With this simple Dockerfile -
Describe the results you received:
After a few runs (less than a minute, usually sooner), "docker images" would return -
Describe the results you expected:
Such errors shouldn't happen even when using Docker concurrently.
Additional information you deem important (e.g. issue happens only occasionally):
The problem is reproduced in a much more complicated scenario. This is a narraowed down to simplify debugging.
The problem is also reproduced when using "docker-py", that doesn't use the "docker" binary directly, so this is probably a daemon issue, and not a client issue.
Docker daemon log shows -
Problem is also reproduced with a fairly recent nightly build -
Problem is reproduced with aufs and with devicemapper storages.
The text was updated successfully, but these errors were encountered: