Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created April 9, 2015 13:43
Show Gist options
  • Save dannycroft/cc8c03a0c5f35f3adebe to your computer and use it in GitHub Desktop.
Save dannycroft/cc8c03a0c5f35f3adebe to your computer and use it in GitHub Desktop.
Docker - Remove all images and containers
#!/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