Lets you play Docker and Nginx friendly on Windows
Lab Environment:
Windows 7 X64
Dockertoolbox-18.02.0-ce
Boot2docker-v18.02.0-ce
The above two things really bad download, the following I provide the address to everyone:
Https://pan.baidu.com/s/11eMFfNc9TzZb8NEDFnYHqg
Password: Wnov
- Install Dockertoolbox-18.02.0-ce (default installation Here, select All, if you have an Oracle VM VirtualBox, remove that tick when installing)
- Three more icons on the desktop after installation is complete
- Run Docker Quickstart Terminal. If the first run fails, I suggest giving it up, it's disgusting.
- Put the BOOT2DOCKER-V18.02.0-CE directly in the following directory:
A) C:\Users\Administrator.docker\machine\cache\boot2docker.iso
b) C:\Users\Administrator.docker\machine\machines\default\boot2docker.iso
- The above two paths are in Docker Quickstart Terminal. The Run Times error will prompt the installation path (depending on your situation)
- After normal startup you will find, for example, that the virtual machine automatically loads Boot2docker.iso running a default virtual machine:
- Then we will take the virtual machine as a process to run, through the Xshell to manage it is not better:
A) Create a script that automatically starts the virtual machine Docker On.bat:
@echo off
CD C:\Program Files\oracle\virtualbox
Vboxmanage STARTVM Default-type Headless
Pause
Exit
b) Create a script that automatically shuts down the virtual machine Docker Off.bat:
@echo off
CD C:\Program Files\oracle\virtualbox
Vboxmanage CONTROLVM Default Poweroff
Pause
Exit
PS: Here The default is the name of your virtual machine, the script is saved in. bat format:
- Double-click on the script to switch the test; (like a friend of the study to see the script in the command ha, how to achieve.) )
- By connecting the virtual machine that we just set up via Xshell, Docker Quickstart terminal is discarded directly
A) default VM login is docker, password is Tcuser
b) Ssh [email protected]:2986
- Successful login:
- Install Docker image, install Nginx and so on first skip, follow-up supplement
- The 32769 port in the figure above is the random port of the Docker interactive process, which is the test demo. To make it easy for notebooks to be tested on the browser
- See figure:
PS: We recommend that you have the condition or go to the server, Linux environment is much better.
51 Blog can not support word directly copy and paste, pictures to pass, tired of a horse.
Lets you play Docker and Nginx friendly on Windows