0

I was running into disk space issues due to the /var/lib/docker/overlay2 directory. I was clever enough to remove some images that had been created a while ago, figuring that would be harmless.

It wasn't, and this was not a smart thing to do.

Nevertheless, here we are, and when I try to perform a docker build for my project now, I run into the following error:

error creating overlay mount to /var/lib/docker/overlay2/<id>/merged: no such file or directory

I would very much appreciate some help on how to fix this. Please let me know if you need further information or clarification, I don't work with docker a whole lot as you might surmise from the question.

user1991
  • 584
  • 1
  • 4
  • 18
  • 1
    Have you tried to restart docker ? – MadProgrammer Sep 21 '22 at 20:45
  • 1
    If restarting Docker doesn't help, I would just stop docker, `rm -rf /var/lib/docker/overlay2`, and then start docker. In general, you should only interact with docker through the API -- use `docker image rm` to delete images. – larsks Sep 21 '22 at 20:53
  • Does this answer your question? [Docker /var/lib/docker/overlay2//merged: no such file or directory](https://stackoverflow.com/questions/71314384/docker-var-lib-docker-overlay2-id-merged-no-such-file-or-directory) – m19v Sep 22 '22 at 08:17

0 Answers0