I got some docker containers running on Centos 8, the /var/lib/docker/overlay2 folder grows very fast in disk size.
Docker uses /var/lib/docker to store your images, containers, and local named volumes. Deleting this can result in data loss and possibly stop the engine from running. The overlay2 subdirectory specifically contains the various filesystem layers for images and containers.
To cleanup unused containers and images, see docker system prune. There are also options to remove volumes and even tagged images, but they aren’t enabled by default due to the possibility of data loss:
BE CAREFUL, docker volume prune will remove all your data that was persisted from docker to host disk…….. system prune is safe though
docker system prune -a && docker volume prune
Quelle: https://stackoverflow.com/questions/46672001/is-it-safe-to-clean-docker-overlay2