[Docker] Docker Prune

less than 1 minute read


Docker Cleaning Up

  • prune command to clean up images, volumes, build cache, and containers

Docker clean up

# displays information regarding the amount of disk space used by the docker daemon
docker system df

# Remove all unused containers, networks, images (both dangling and unreferenced), and optionally, volumes
docker system prune

docker image prune
docker container prune

ref