Using Vagrant (Mac, Linux)¶
This guide will setup a new virtualbox virtual machine with docker installed on your computer. This works on most operating systems, including MacOSX, Windows, Linux, FreeBSD and others. If you can install these and have at least 400MB RAM to spare you should be good.
Install Vagrant and Virtualbox¶
Docker is still under heavy development! We don’t recommend using it in production yet, but we’re getting closer with each release. Please see our blog post, “Getting to Docker 1.0”
This is a community contributed installation path. The only ‘official’ installation is using the Ubuntu installation path. This version may be out of date because it depends on some binaries to be updated and published
Spin it up¶
Fetch the docker sources (this includes the Vagrantfile for machine setup).
git clone https://github.com/dotcloud/docker.git
Change directory to docker
Run vagrant from the sources directory
- Download the ‘official’ Precise64 base ubuntu virtual machine image from vagrantup.com
- Boot this image in virtualbox
- Follow official Ubuntu installation path
You now have a Ubuntu Virtual Machine running with docker pre-installed.
To access the VM and use Docker, Run vagrant ssh from the same directory as where you ran vagrant up. Vagrant will connect you to the correct VM.