mirror of
https://github.com/moby/moby.git
synced 2025-12-13 22:02:25 +03:00
1.9 KiB
1.9 KiB
- title
- Using Vagrant (Mac, Linux)
- description
- This guide will setup a new virtualbox virtual machine with docker installed on your computer.
- keywords
- Docker, Docker documentation, virtualbox, vagrant, git, ssh, putty, cygwin
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
- Install virtualbox from https://www.virtualbox.org/ (or use your package manager)
- Install vagrant from http://www.vagrantup.com/ (or use your package manager)
- Install git if you had not installed it before, check if it is
installed by running
gitin a terminal window
Spin it up
Fetch the docker sources (this includes the
Vagrantfilefor machine setup).git clone https://github.com/dotcloud/docker.gitChange directory to docker
cd dockerRun vagrant from the sources directory
vagrant upVagrant will:
- Download the 'official' Precise64 base ubuntu virtual machine image from vagrantup.com
- Boot this image in virtualbox
- Follow official
ubuntu_linuxinstallation path
You now have a Ubuntu Virtual Machine running with docker pre-installed.
Connect
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.
vagrant sshRun
Now you are in the VM, run docker
sudo dockerContinue with the hello_world example.