2014-02-09 14:40:31 +02:00
:title: Installation on Windows
:description: Please note this project is currently under heavy development. It should not be used in production.
2014-02-21 18:07:51 +02:00
:keywords: Docker, Docker documentation, Windows, requirements, virtualbox, boot2docker
2013-03-25 19:52:52 -07:00
2013-08-27 14:29:49 -07:00
.. _windows:
2014-04-15 06:01:25 +00:00
Microsoft Windows
=================
2013-03-26 08:50:34 -07:00
2014-02-21 18:07:51 +02:00
Docker can run on Windows using a virtualization platform like VirtualBox. A Linux
distribution is run inside a virtual machine and that's where Docker will run.
2013-03-26 08:50:34 -07:00
2013-08-28 17:26:10 -07:00
Installation
------------
2013-03-26 08:50:34 -07:00
2013-08-28 17:26:10 -07:00
.. include :: install_header.inc
2013-03-25 19:52:52 -07:00
2014-04-15 06:01:25 +00:00
1. Install VirtualBox from https://www.virtualbox.org - or follow this `tutorial <http://www.slideshare.net/julienbarbier42/install-virtualbox-on-windows-7> `_ .
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
2. Download the latest boot2docker.iso from https://github.com/boot2docker/boot2docker/releases.
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
3. Start VirtualBox.
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
4. Create a new Virtual machine with the following settings:
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
- `Name: boot2docker`
- `Type: Linux`
- `Version: Linux 2.6 (64 bit)`
- `Memory size: 1024 MB`
- `Hard drive: Do not add a virtual hard drive`
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
5. Open the settings of the virtual machine:
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
5.1. go to Storage
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
5.2. click the empty slot below `Controller: IDE`
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
5.3. click the disc icon on the right of `IDE Secondary Master`
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
5.4. click `Choose a virtual CD/DVD disk file`
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
6. Browse to the path where you've saved the `boot2docker.iso` , select the `boot2docker.iso` and click open.
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
7. Click OK on the Settings dialog to save the changes and close the window.
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
8. Start the virtual machine by clicking the green start button.
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
9. The boot2docker virtual machine should boot now.
2013-03-25 19:52:52 -07:00
Running Docker
--------------
2014-02-21 18:07:51 +02:00
boot2docker will log you in automatically so you can start using Docker right
away.
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
Let's try the “hello world” example. Run
2013-03-25 19:52:52 -07:00
.. code-block :: bash
2013-03-26 19:31:35 -07:00
docker run busybox echo hello world
2013-03-25 19:52:52 -07:00
2014-02-21 18:07:51 +02:00
This will download the small busybox image and print hello world.
2013-08-27 11:19:32 -07:00
2014-02-21 18:07:51 +02:00
Observations
------------
2013-08-27 11:19:32 -07:00
2014-02-21 18:07:51 +02:00
Persistent storage
`` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ``
2013-08-27 11:19:32 -07:00
2014-02-21 18:07:51 +02:00
The virtual machine created above lacks any persistent data storage. All images
and containers will be lost when shutting down or rebooting the VM.