Loading...

The Docker platform is the only container platform to build, secure and manage the widest array of applications from development to production both on premises and in the cloud. Build, Ship, Run apps anywhere.

System Cleanup

All

docker system prune

Volumes (since v1.13)

docker volume prune

pre v1.13

docker volume rm $(docker volume ls -q --filter dangling=true)

Clean up local builds

#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Remove exited containers
docker rm $(docker ps -a -f status=exited -q)
# Delete only dangling images
docker rmi $(docker images -f dangling=true -q)
# Delete all images
docker rmi $(docker images -a -q) -f