Skip to content

Instantly share code, notes, and snippets.

@mgallego
Created October 4, 2016 10:51
Show Gist options
  • Save mgallego/48a635fc17e27a9f2e735009efa76b56 to your computer and use it in GitHub Desktop.
Save mgallego/48a635fc17e27a9f2e735009efa76b56 to your computer and use it in GitHub Desktop.
Delete all Docker containers and images
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@mgallego
Copy link
Author

mgallego commented Oct 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment