Skip to content

Instantly share code, notes, and snippets.

@jhenaoz
Last active August 23, 2019 19:17
Show Gist options
  • Save jhenaoz/1c207095a324e4d2f6c9145f8665cd36 to your computer and use it in GitHub Desktop.
Save jhenaoz/1c207095a324e4d2f6c9145f8665cd36 to your computer and use it in GitHub Desktop.
Remove all docker containers
#Stop all docker containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
#Remove all docker images
docker rmi $(docker images -q)
# Remove all docker volume
docker volume rm $(docker volume ls -f dangling=true -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment