Docker Installing Docker on Windows


Example

Requirements: 64-bit version of Windows 7 or higher on a machine which supports Hardware Virtualization Technology, and it is enabled.

While the docker binary can run natively on Windows, to build and host containers you need to run a Linux virtual machine on the box.

1.12.0

Since version 1.12 you don't need to have a separate VM to be installed, as Docker can use the native Hyper-V functionality of Windows to start up a small Linux machine to act as backend.

To install docker follow the following steps:

  1. Go to Docker for Windows
  2. Download and run the installer.
  3. Continue through installer with default options and enter your account credentials when requested.

Check here for more information on the installation.

1.11.2

Until version 1.11 the best way to run this Linux VM is to install Docker Toolbox, that installs Docker, VirtualBox and the Linux guest machine.

To install docker toolbox follow the following steps:

  1. Go to Docker Toolbox
  2. Click the link for Windows and run the installer.
  3. Continue through installer with default options and enter your account credentials when requested.

This will install the Docker binaries in Program Files and update any existing Virtual Box installation. Check here for more information on the installation.

To Verify Installation:

1.12.0
  1. Start Docker from the Start menu if it hasn't been started yet, and make sure it is running. Next upen up any terminal (either cmd or PowerShell)
1.11.2
  1. On your Desktop, find the Docker Toolbox icon. Click the icon to launch a Docker Toolbox terminal.
  1. Once the terminal is open type

    docker run hello-world
    
  2. If all is well then this should print a welcome message verifying that the installation was successful.