Created
September 15, 2017 12:28
-
-
Save SensibleWood/017be4a1e69b72b53f15575470118657 to your computer and use it in GitHub Desktop.
Cheap way of cleaning out all containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
docker ps -a | awk '$1 != "CONTAINER" { print $1 }' | xargs docker rm -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment