Skip to content

Instantly share code, notes, and snippets.

@umarniz
Created September 29, 2016 14:05
Show Gist options
  • Save umarniz/5d8fe762edeae02a6ec24b26c68ec29c to your computer and use it in GitHub Desktop.
Save umarniz/5d8fe762edeae02a6ec24b26c68ec29c to your computer and use it in GitHub Desktop.
A gist to stop running containers and remove any stopped or dangling containers
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images --quiet --filter "dangling=true")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment