-
Notifications
You must be signed in to change notification settings - Fork 116
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
No such file or directory for /var/lib/docker/overlay2 #1396
Comments
Steps to resolveWarning: this will delete any volumes on your machine, see this comment.
$ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
$ umount /var/lib/docker/overlay2
$ rm -rf /var/lib/docker |
Thanks for the report @cptaffe. I've looked at the logs and unfortunately I can't really see anything that should have caused this. It's good to hear that the issue is resolved. I'm closing the issue, but please reopen if you experience it again. If you find a way to reliably reproduce it that would also be very helpful for debugging. |
I get the following error when trying to remove
|
I've updated my comment above. I believe you have just need to unmount the fs $ umount /var/lib/docker/overlay2 |
was wondering what exactly is causing this problem? ran into this issue as well |
I just hit the same error, after running the same |
In my case I must restart the docker (MacOS) after did the "Steps to resolve". Maybe the information helps other. |
Just had the issue, in my case I resolved it by rebuilding the containers with the no-cache option.
To be honest I don't really know what caused the issue either. |
I just ran into this issue and our handy DevOps engineer recommended that I follow the following steps:
This fixed my issue. It may be overkill, but it's easy. Use at your own risk. Note: it'll take a long time if you have a lot of images. |
Ran into this issue as well, seems like it was caused by |
In my situation, I changed my data location of my docker engine to some folder @tagiris123 , I suggest you to stop the docker engine first, by |
I am getting this regularly, every couple of weeks - is there any investigation into it? OSX: 10.12.6 (16G29) |
Had this problem toady as well after running |
Well, advice to drop all data volumes is not a viable solution at all. |
@MagnusS I vote this should be reopened. I hit this today on latest Docker for Mac beta. |
Only way to fix it for me is to reset Docker on my Mac via Widget. |
Hi, The problem is that after downloading the image, I get the following error message: Could anybody point me to the possible solution? Thanks I'm using Ubuntu 16.04.3 LTS, and docker 17.05.0-ce Thanks! |
I felt I was being pretty charitable in my interpretation of what you were saying. My intention certainly was not to be rude or condescending. A |
This is still a problem for me with docker for mac years after... |
Still having issues with this on darwin |
My fix for this is to get rid of macos and go full linux. Everything works fine there. Deprecate the repo.
|
Still having this problem and all solutions don't work for me. |
We faced the same issue twice in a couple of days. Once on Core-OS, once on a yocto embedded linux. Current suspicions point on USB-devices mounted into running docker containers. But we do not have any proofs for that, yet. |
I stiil have this issue. |
I'm having this issue too. When trying to screen in to the VM, I see failures due to com.docker.driver.amd64-linux not even existing... |
this is good for me. |
just ran into this issue as well |
Had this issue as well 2.1.0.5 (40693) |
In my experience over the past 2 years of hitting this about once every week or two, I can only shed this much light: It seems most likely to occur when either:
In both cases the docker engine occasionally becomes unresponsive, if you restart docker-for-mac and re-run the container where the error occured, then you'll hit the
It seems that deleting the image for this container is the least intrusive way to get things working again; this isn't helpful if you're trying to import 15gb worth of data and docker crashes on the 14th gb, you'll need to start over from scratch. But if you're half way through an Diagnostic report 054F9A95-A26C-49C1-83F9-E0C231875799/20200131212107 Looking forward to the time that I stop hitting this so frequently |
I got tired of this and used docker-machine with vmware driver. It's a bit tricky to set up to work as "natural" as docker for mac (used wrapper for docker compose, some envvars-to-compose-file magic and shared folders), but IO is so much faster that it's worth it. And there is also an NFS option, which also may work better than volume mounts for many cases. This is what we've used previously, also with a wrapper script etc. |
I am able to repro this problem on Linux across multiple computers with a specific image and was able to solve by using aufs storage-backend instead. Docker 19.03.5 |
For me, none of the mentioned solutions seemed to work (didn't try yet aufs approach yet though) in Docker Toolbox even after reinstalling it and removing all the data. However, the working workaround surprisingly was to restrict the number of 'RUN' docker building commands/layers, since if the number surpassed 60 layers/commands, it always ended up with that error, no matter what was the contents of the command, even simple command such as 'RUN ls -la' ended up with that error, if the total number of such/any commands was higher than about 60, strange. 'Merged' subfolder was always missing, though even when I automatically generated all the merged subfolders, always was created on the fly a new layer with a new hash, which was missing that subfolder. |
hi man, |
@FantomX1 I think you might be onto something. Are we hitting a limitation of overlay with the number of layers? Here is the latest which has been driving me crazy, and look at my layer count!
|
@FantomX1, if you happen to have defined a custom data root, then I recommend trying to add or remove a character from the directory name to see if the problem goes away. |
i followed every possible solution in this thread but still facing the issue COPY failed: stat /var/lib/docker/overlay2/4b5778ef1684bb405c528a650a84d1c763984ecefabbcfac27ea2032313fff26/merged/app/dist: no such file or directory |
@maresb thx will try to give it a check, but I don't seem to have defined it the custom root, |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Docker image builds without error
Actual behavior
Docker image encounters error
no such file or directory
when building images. Restarting Docker does not resolve.Information
ID:
16AAC546-A181-43B5-AD4E-F69C257AAFE7
Contents of
docker-compose.yml
:Contents of
./map/Dockerfile
:Contents of
Dockerfile
forpostgres-thrillshare
:Steps to reproduce the behavior
docker build
ordocker-compose up
.May have something to do with running
docker system prune
.The text was updated successfully, but these errors were encountered: