setup docker client in mac

Posted on

docker is not supported by mac, but it is possible to setup docker client in mac and execute all commands in remote system with local docker cli.

mkdir tmp
export GOPATH=`pwd`/tmp
go get -v github.com/dotcloud/docker/docker
# (this may take some time)
sudo cp tmp/bin/docker /usr/local/bin/
rm -rf tmp

cd tmp/src/github.com/dotcloud/docker

git checkout v0.6.7

go get -v github.com/dotcloud/docker/docker

# assume 10.10.1.7 is IP for remote docker

alias docker='docker -H tcp://10.10.1.7:4243/'

useful to connect to vagrant or ec2 docker instance.

Leave a Reply

Your email address will not be published.