Skip to content

Instantly share code, notes, and snippets.

View ct2034's full-sized avatar
✏️

Christian Henkel ct2034

✏️
View GitHub Profile
@aduermael
aduermael / dockerTunnel.md
Created August 17, 2016 21:22
Connect to remote Docker engine through SSH tunnel

Bind remote docker.sock with SSH tunnel:

ssh -nNT -L /tmp/docker.sock:/var/run/docker.sock  <USER>@<IP> &

Set environment variable for local Docker client:

export DOCKER_HOST=unix:///tmp/docker.sock