Skip to content

Instantly share code, notes, and snippets.

@pradeep1991singh
Last active December 22, 2016 18:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pradeep1991singh/48842344d299bd0af4c4d9b3650e5b86 to your computer and use it in GitHub Desktop.
Save pradeep1991singh/48842344d299bd0af4c4d9b3650e5b86 to your computer and use it in GitHub Desktop.
Docker: Remove all containers and images
#credit: https://github.com/crosbymichael
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete 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