You must already have pip (brew install python), Vagrant (from the OS X installer, not the gem) and VirtualBox installed.
First, install Docker:
$ curl https://raw.github.com/noplay/docker-osx/master/docker > /usr/local/bin/docker
$ chmod +x /usr/local/bin/docker
$ docker version