Skip to content

Instantly share code, notes, and snippets.

@BretFisher
Last active February 28, 2018 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save BretFisher/09254922f9a79ff5545a4429830f01eb to your computer and use it in GitHub Desktop.
Save BretFisher/09254922f9a79ff5545a4429830f01eb to your computer and use it in GitHub Desktop.
Docker Cloud Swarm Connect Alias
# 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