setup docker client in mac
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.
Written by sumit gupta
Related protips
2 Responses
- You can use homebrew/binary tap where you can install docker
- You can use DOCKER_HOST variable instead of an alias: https://github.com/dotcloud/docker/pull/3303
over 1 year ago
·
Or you can just use the official boot2docker installer: https://github.com/boot2docker/osx-installer
Will give you the docker client, boot2docker and everything you need to run docker on a Mac bundled in a simple mpkg installer! ;)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mac
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#