Skip to content

Instantly share code, notes, and snippets.

@timonwong
Created May 14, 2015 06:18
Show Gist options
  • Save timonwong/748f73b7686be0cc8190 to your computer and use it in GitHub Desktop.
Save timonwong/748f73b7686be0cc8190 to your computer and use it in GitHub Desktop.
Shutdown all containers
sudo docker ps -a | awk '{print $1}' | grep -v "CONTAINER" | xargs --no-run-if-empty sudo docker rm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment