Created
March 30, 2017 19:16
-
-
Save beenanner/9f73dc5c86bb5ae9770f98e354f83fc8 to your computer and use it in GitHub Desktop.
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
SSH tunnel to remote host socket | |
ssh -fNT -L /tmp/remote-docker.sock:/var/run/docker.sock <remote-user>@<host-ip> | |
Map localhost docker host to ssh tunnel | |
export DOCKER_HOST=unix:///tmp/remote-docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So this is tunneling the
/tmp/remote-docker.sock
to the swarm manager/var/run/docker.sock
? And any docker commands run from the origin will be tunneled to the swarm manager?