Skip to content

Instantly share code, notes, and snippets.

@pedroborges
Created January 28, 2014 16:58
Show Gist options
  • Save pedroborges/8671675 to your computer and use it in GitHub Desktop.
Save pedroborges/8671675 to your computer and use it in GitHub Desktop.
Removes all Docker containers then all its images.
#!/bin/bash
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment