Last active
February 28, 2018 09:51
-
-
Save BretFisher/09254922f9a79ff5545a4429830f01eb to your computer and use it in GitHub Desktop.
Docker Cloud Swarm Connect Alias
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
# so docker cloud now has swarms fleet mgmt | |
# and you can use something like this to connect from cli to your swarm via docker remote api: | |
docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client bretfisher/swarm1 | |
# but maybe we can put that in a bash alias to make it easier | |
alias cswarm="docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -e DOCKER_HOST dockercloud/client" | |
#then | |
cswarm bretfisher/dude-swarm1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment