Use docker-osx:
- Easy to use.
- But still under heavy development.
- So need to periodically check for updates and redownload their
docker
script to get any sweet new features.
Basically do what docker-osx
above does manually:
- Install VirtualBox and Vagrant
- Use this prebuilt Docker 0.7.2 box in your Vagrantfile (see example): vagrant-docker-0.7.2-virtualbox.box
vagrant up
, thenvagrant ssh
and build Docker.- Then, still inside the Docker VM, run
sudo make cross
to compile the cross-platform binaries. - Copy out your built OS X binary to somewhere in your
$PATH
(e.g./usr/local/bin
) - Alias
docker
to/usr/local/bin/docker -H=tcp://127.0.0.1:4243
(you may replace the IP with a private Vagrant IP)
If you don't want to build docker, download a prebuilt Docker 0.7.2 binary here.
Wait for Docker's official OS X binary release (slated for 0.7.3), then just brew install docker
:) Track the issue here.
- Julien Duponchelle for the original docker-osx script.
- Ben Firshman for the prebuilt Vagrant base image and binary.