I have some problem about the storage. The folder /var/lib/docker/devicemapper/ is taking 50% of my storage.
In the folder /var/lib/docker/devicemapper/mnt, I have many empty folders.
How can I properly clean docker devicemapper and remove all unused mapping ?
With recent versions of Docker you can see the space used with:
docker system dfand prune it with:
docker system pruneThe above command combines the prune command that exists for volumes, containers, images and networks:
docker volume prunedocker container prunedocker image prunedocker network pruneEach command has a
--helpoption documenting a-f(--force) option to avoid asking you questions. It must be used with care.-o-
On older versions of Docker I ran the script: