


Windows Server2016 has been officially released for some time. It is understandable that the support of native Docker is a very big highlight of this version.
Windows Container The currently supported image must be the Windows kernel image (including Server Core/Nano Server), and some images are also It is in the testing stage and has many pitfalls.
In the latest version of Docker for windows, switching between Windows container and Liunx is implemented, but currently it can only be installed in the windows10 environment (if there are other methods Please tell me).
This article takes installing the Docker Registry image in Windows 2016 as an example to explain how to install Docker through VM in Hyper-v in Windows Server 2016
1. Turn on the Hyper-V function
First make sure that the Hyper-V function is turned on. Without giving too much introduction.
2. Set up the virtual switch
In the Hyper-v manager interface, in the operation bar on the right, open the virtual switch manager
Create a new virtual network switch
After I have built it here, the result is as follows:
Restart the computer
Docker-Machine
Docker-Machine is not installed by default, you need to download it yourself
http://github.com/docker/machine/releases
After downloading, rename it to docker-machine.exe
Create Docker machine
Enter the folder where docker-machine.exe is located in the administrator cmd environment
- ##The format of the running command is as follows:
docker-machine create -d hyperv --hyperv-virtual-switch "<NameOfVirtualSwitch>" <nameOfNode>
` docker-machine create -d hyperv --hyperv-virtual-switch "DockNAT" VM8 `Then wait
PS C:\WINDOWS\system32> docker-machine create -d hyperv --hyperv-virtual-switch "DcokNAT" VM8 Running pre-create checks... Creating machine... (manager1) Copying C:\Users\Vicky\.docker\machine\cache\boot2docker.iso to C:\Users\Vicky\.docker\machine\machines\manag er1\boot2docker.iso... (manager1) Creating SSH key... (manager1) Creating VM8... (manager1) Using switch "DockNAT" (manager1) Creating VHD (manager1) Starting VM... (manager1) Waiting for host to start... Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Detecting the provisioner... Provisioning with boot2docker... Copying certs to the local machine directory... Copying certs to the remote machine... Setting Docker configuration on the remote daemon... Checking connection to Docker... Docker is up and running! To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: C:\Program Files\Doc ker\Docker\Resources\bin\docker-machine.exe env VM8 PS C:\WINDOWS\system32>Set the current host as the host where the default docker command runs. According to the prompts, we run the following command
docker-machine.exe env VM8
@FOR /f "tokens=*" %i IN ( 'docker-machine env vm8') DO @%i
docker version View host information
linux version of docker in Windows Server 2016 Install.
The above is the detailed content of Detailed explanation on how to install Liunx Container through Hyper-V in Windows Server 2016 (picture). For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
