I\'ve just noticed that I ran out of disk space on my laptop. Quite a lot is used by Docker as found by mate-disk-usage-analyzer:
The docker/
docker takes lot of gig into three main areas :
Check for downloaded and compiled images. clean unused and dead images by running below command
$docker image prune -a
Docker creates lot of volume, some of the volumes are from dead container that are no more used clean the volume and reclaim the space using
$docker system prune -af &&
docker image prune -af &&
docker system prune -af --volumes &&
docker system df
Docker container logs are also very notorious in generating GBs of log overlay2 storage for layers of container is also another source of GBs eaten up . One better way is to calculate the size of docker image and then restrict the docker container with below instructions for storage and logs upper cap. For these feature use docker V19 and above.
$docker run -it --storage-opt size=2G --log-opt mode=non-blocking --log-opt max-buffer-size=4m fedora /bin/bash