Skip to content

Instantly share code, notes, and snippets.

@m-wendler
Created March 26, 2016 08:37
Show Gist options
  • Save m-wendler/22ce69e24d5d335b5de8 to your computer and use it in GitHub Desktop.
Save m-wendler/22ce69e24d5d335b5de8 to your computer and use it in GitHub Desktop.
rm several docker hosts in one go
# 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