How to install Docker on window 10
Docker has recently launched a stable version that can run on Win10 and Macs, so in this post I'll show you how to install Docker on Windows 10 and run Linux and Windows Containers.
Docker for Windows 10 uses Microsoft Hyper-V to drive both the Linux and Windows containers.
To run Docker on Windows 10, we need to run Windows Pro,enterprise or education version 1607 or later.
In my case, I am using Windows 1709 Pro. Below we start to install:
We need to enable Hyper-V and container features and run the following PS command:
Enable-windowsoptionalfeature-online-featurename Containers,microsoft-hyper-v–all
Reboot required to complete installation:
After you restart the computer, download Docker for Windows 10 from the following link. :
https://docs.docker.com/docker-for-windows/install/#download-docker-for-windows
After entering the page, there are two versions available for us to choose from: Stable version and BATE version, respectively.
Download complete the version we need to click Install later:
You will need to restart your computer after the installation is complete:
You can see Docker is starting after restarting the login:
After the installation is complete, we can use the PowerShell command-line tool to manage Docker
We enter the Docker version and we see that the Linux container can be run by default:
You can see from the default allows us to run a Linux container, if there are some small partners want to run the Windows container, you can right-click the Docker icon, select Switch to Windows Containers:
You can see the system prompt for Docker is switching:
Then we run Docker version to view:
We run the following command to download a Windows Nano Server Container Image:
Docker Pull Microsoft/nanoserver
We will run the following command line to run the Nano Server Container:
Docker Run Micorosoft/nanoserver
How to install Docker on window 10