Created
June 30, 2018 10:36
-
-
Save themarcelor/1073592a9fbfa37751c924c3039ac081 to your computer and use it in GitHub Desktop.
cleaning up old Docker containers
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
| # easy | |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) | |
| # meh | |
| # docker ps -a | tail -n +2 | awk '{print $1}' | xargs -I {} docker rm {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment