Skip to content

Docker Clean up

# Remove all containers that are not currently running
$ docker container prune

# Remove all images that are not attached to any container
$ docker image prune

# Remove all images that are not attached to any container
$ docker image prune

# Remove all stopped containers, volumes, networks and dangling images
$ docker system prune

# Remove all stopped containers, volumes, networks and unused images
$ docker system prune -a

Last update: May 6, 2024