Forked from beenanner/Docker socket remote ssh tunnel
Created
September 25, 2020 16:01
-
-
Save kconde2/63a567958b7993686d20a323987fdaf3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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