Skip to content

Instantly share code, notes, and snippets.

@niclashoyer
Created June 6, 2013 20:27
Show Gist options
  • Save niclashoyer/5724636 to your computer and use it in GitHub Desktop.
Save niclashoyer/5724636 to your computer and use it in GitHub Desktop.
Remove all Docker Containers
#!/bin/bash
containers=`sudo find /var/lib/docker/graph/ -maxdepth 1 -type d -printf "%f "`
docker rmi $containers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment