Skip to content

Instantly share code, notes, and snippets.

@BretFisher BretFisher/alias.sh
Last active Feb 28, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.