Skip to content

Instantly share code, notes, and snippets.

@gorshkov-leonid
Last active October 10, 2019 09:28
Show Gist options
  • Save gorshkov-leonid/872218f3e856581e5e18263a2bee0894 to your computer and use it in GitHub Desktop.
Save gorshkov-leonid/872218f3e856581e5e18263a2bee0894 to your computer and use it in GitHub Desktop.
#remove all containers
docker rm -f $(docker ps -a -q)
#al images
docker rmi -f $(docker images -q)
#remove all containers / images / volumes - dangling (not associated with a container)
docker system prune
#remove all
docker system prune -a
#
docker images -f dangling=true
docker images purge
#
docker volume ls -f dangling=true
docker volume prune
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment