Created
January 22, 2018 20:03
-
-
Save Alykoff/67a07c28ff3c139eda99f0eb35dfd87b to your computer and use it in GitHub Desktop.
docker-rm-all.sh
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
#!/bin/bash | |
docker ps -a --format "{{.ID}}" | xargs -n 1 -P 1 docker stop && \ | |
docker ps -a --format "{{.ID}}" | xargs -n 1 -P 1 docker rm -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment