DWQA QuestionsCategory: Development ToolHow do you understand Docker's growing file size?
Question leaf asked 4 weeks ago

There is not enough disk space on VPS. After checking the files, we found that there are many files, especially some files in the Docker installation directory are very large. How to understand the files. Docker-related files can be reduced?

➤➤ sudo find / -xdev -type f -size +100M
3 Answers
Good Rain Technology answered 4 weeks ago

Try cleaning up the logs in the mirror where docker runs, and maybe some space can be cleared out.

Question leaf replied 4 weeks ago

So, I’m going to go inside the docker container to check and understand.

Junior answered 4 weeks ago

Try this: Shellscript to delete orphaned docker volumeshttps://registry.hub.docker.com/u/martin/docker-cleanup-volumes/

The gang leader Big Brother answered 4 weeks ago

When you execute remove, you don’t remove the cached files that docker pulls down. The more you pull, the larger the files will become until the disk is full.