Skip to content

Instantly share code, notes, and snippets.

@debuglevel
Created September 14, 2017 20:07
Show Gist options
  • Save debuglevel/20bfbfd0fbfc3e92a058b90a137ace01 to your computer and use it in GitHub Desktop.
Save debuglevel/20bfbfd0fbfc3e92a058b90a137ace01 to your computer and use it in GitHub Desktop.
Stop and remove all containers and images from a Docker host
docker stop $(docker ps -a -q) ; docker rm $(docker ps -a -q) ; docker rmi $(docker images -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment