Created
March 26, 2016 08:37
-
-
Save m-wendler/22ce69e24d5d335b5de8 to your computer and use it in GitHub Desktop.
rm several docker hosts in one go
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
# stop and remove all docker hosts with these names | |
for H in staging prod; do | |
docker-machine stop $H; | |
docker-machine rm -y $;H # pass -y to automatically confirm the removal | |
done | |
# OR: one-liner | |
for H in staging prod; do docker-machine stop $N; docker-machine rm -y $N; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment