Skip to content

Instantly share code, notes, and snippets.

@sdia-zz
Created August 1, 2018 11:50
Show Gist options
  • Save sdia-zz/ada6703f4b02f7597809415e96950630 to your computer and use it in GitHub Desktop.
Save sdia-zz/ada6703f4b02f7597809415e96950630 to your computer and use it in GitHub Desktop.
# list all containers
docker ps -aq
# stop running containers
docker stop $(docker ps -aq)
# remove all containers
docker rm $(docker ps -aq)
# remove all images
docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment