Skip to content

Instantly share code, notes, and snippets.

@gering
Last active August 29, 2015 14:21
Show Gist options
  • Save gering/bdf0ade7cfee1fcd8924 to your computer and use it in GitHub Desktop.
Save gering/bdf0ade7cfee1fcd8924 to your computer and use it in GitHub Desktop.
Remove all Docker Container and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# 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