After a recent upgrade (including Ubuntu proposed repo) this command started failing:
docker -D build .
It failed at random lines in my
Dockerfile on things like setting an environment variable:
failed to export image: failed to set parent sha256:1209386865e4a395004592f49943a2ceee54f9b77800062b1fcd48b7ce58b592: unknown parent image ID sha256:1209386865e4a395004592f49943a2ceee54f9b77800062b1fcd48b7ce58b592 failed to get digest sha256:2630e04441b4f54a6f2df481ecac83071fa89078c192de90be1ffb9069806964: open /var/lib/docker/image/overlay2/imagedb/content/sha256/2630e04441b4f54a6f2df481ecac83071fa89078c192de90be1ffb9069806964: no such file or directory
Normally in severe cases of possible corruption I do the below but this time it didn't help:
service docker stop /var/lib/docker/ service docker stop