How to install Docker on window 10

Source: Internet
Author: User
Tags docker run

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.