Windows must be a 64-bit
1. Download the package
installation package Https://github.com/boot2docker/windows-installer/releases
Download the latest version of: Docker-install.exe.
After the installation is complete, there will be three more software on the system:
Oracle VM VirtualBox
Git
Boot2docker for Windows
The above three default installations are available.
2. Setting Environment variables
In the Command window, enter LS If you can find the command stating that the environment was added correctly.
3. Start Dockert
In the command window, cut to the Docker installation directory
Input SH:
Then enter start.sh, waiting to start
In the first boot, if a new version is updated, the time is longer.
If you start the second time, it's very fast.
4. Analysis start.sh
#!/bin/bashset-e# clear the MSYS motdclearcd "$ (dirname" $BASH _source ")" iso= "$HOME/.boot2docker/boot2docker.iso" if [! -E "$ISO"]; Then echo ' copying initial boot2docker.iso (run "boot2docker.exe download" to update) ' Mkdir-p "$ (dirname" $ISO ")" CP./boot2docker.iso "$ISO" Fiecho ' initializing ... './boot2docker.exe initechoecho ' starting ... '/boot2docker.exe Startecho./boot2docker.exe ipecho ' Connecting ... './boot2docker.exe sshechoechoecho ' [Press any key to exit] ' read
From the content of the main is to execute, the following statement
Boot2docker.exe initboot2docker.exe startboot2docker.exe SSH
All the sh start.sh can be executed at the command line
5. Manage with SSH tools
After the Windows command line enters Docker, cannot copy, and the operation is not convenient, so with the support of SSH tools to manage is very good, such as SECURECRT, putty, etc., recommended with SECURECRT.
The IP can be queried at the command line using the Boot2docker IP
The default user name and password are: docker/tcuser
Post-Login Interface:
6. Download the image6.1
http://download.openvz.org/template/precreated
Select Download ubuntu-14.04-x86_64.tar.gz
6.2 Uploading the TAR package with the FTP tool
Recommended Use: FileZilla
6.3 Installation
Command:cat ubuntu-14.04-x86_64.tar.gz |docker import-ubuntu:ubuntu14
It's very fast, about 10 seconds to complete.
6.4 Viewing Mirrors
View: Docker images
6.5 Run
Run:Docker run-i-T Ubuntu:ubuntu14/bin/bash
You can start a Docker trip.
DOCKER Windows 7 Detailed installation tutorial