Answer the question
In order to leave comments, you need to log in
How to disable automatic deletion of docker images when free disk space is low?
1) There is a virtual machine, docker images are collected on it after pushes to the turnip.
2) Some images use other images via COPY --from=image:latest /folder .
3) And the fact is that when there is less than 20GB left on the hard drive, the docker removes images that are not used in containers.
4) And because of the deletion of images, I cannot build an image that pulls data from an already deleted image.
Tried googling but couldn't find anything about how to prevent docker from cleaning up images.
Answer the question
In order to leave comments, you need to log in
Docker itself does not do this, there is a command docker prune system -af
and it must be run separately.
Check crontab for a script that could run this command
Check systemd timers that could run this command
Check the script that directly starts building the image and if using build software like Jenkins check its settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question