Created
November 23, 2019 13:52
-
-
Save alejandrobernardis/ca8f1fda783e02a6b83822ccbce56930 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function col { | |
| awk -v col=$1 '{print $col}' | |
| } | |
| docker ps -q | xargs docker stop | |
| docker ps -aq | xargs docker rm | |
| docker images | grep none | col 3 | xargs docker rmi -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment