Created
April 3, 2015 13:10
-
-
Save aaronfeng/62bdf97229d1879ff2e6 to your computer and use it in GitHub Desktop.
Mount unix socket from boot2docker to host
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
# Requires socat on host and boot2docker | |
# OSX - brew install socat | |
# boot2docker - tce-load -wi socat | |
# change your ssh key path | |
sudo socat "UNIX-LISTEN:/var/run/docker.sock,reuseaddr,fork" EXEC:'ssh -i /Users/aaron.feng/.ssh/id_boot2docker [email protected] socat STDIO UNIX-CONNECT\:/var/run/docker.sock' | |
# own the unix socket on host | |
sudo chown aaron.feng /var/run/docker.sock | |
# test | |
docker -H "" ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment