Skip to content

Instantly share code, notes, and snippets.

@bigslycat
Last active January 22, 2020 17:04
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bigslycat/23b738df23ec08063de18c3afeaf9038 to your computer and use it in GitHub Desktop.
Save bigslycat/23b738df23ec08063de18c3afeaf9038 to your computer and use it in GitHub Desktop.
Docker commands cheatsheet
# Stop all running containers
docker stop $(docker ps -q | paste -sd " " -)
# Stop and remove all containers
docker rm -f $(docker ps -aq | paste -sd " " -)
# Stop and remove all images
docker rmi -f $(docker images -aq | paste -sd " " -)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment