You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.
If a docker pull is running while docker-gc executes it deletes intermediate layers of the currently pulled image, corrupting the download. If you try to create a container from the corrupt image, it shows an error that it cannot find an intermediate image.
On a machine of mine I'm running a similar code which removes untagged images with the command: docker rmi $(docker images -q --filter "dangling=true")
This has the same issues and because of that I'm running it only nightly once when there's no other maintenance method is running.
I wonder if this could be improved somehow. It would be really helpful to run docker-gc more often on eg. a Jenkins build machine, where each commit can trigger a new build with a new image and we can run out of disk space quickly.
This can be really hard to fix because of the race conditions.
The text was updated successfully, but these errors were encountered:
If a docker pull is running while docker-gc executes it deletes intermediate layers of the currently pulled image, corrupting the download. If you try to create a container from the corrupt image, it shows an error that it cannot find an intermediate image.
On a machine of mine I'm running a similar code which removes untagged images with the command:
docker rmi $(docker images -q --filter "dangling=true")
This has the same issues and because of that I'm running it only nightly once when there's no other maintenance method is running.
I wonder if this could be improved somehow. It would be really helpful to run docker-gc more often on eg. a Jenkins build machine, where each commit can trigger a new build with a new image and we can run out of disk space quickly.
This can be really hard to fix because of the race conditions.
The text was updated successfully, but these errors were encountered: