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
# (this may take some time)
sudo cp tmp/bin/docker /usr/local/bin/
rm -rf tmp

cd tmp/src/

git checkout v0.6.7

go get -v

# assume is IP for remote docker

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

useful to connect to vagrant or ec2 docker instance.

Leave a Reply

Your email address will not be published.