Install Docker for Windows on Windows 10 Home Edition

Install Docker for Windows on Windows 10 Home Edition

0. Background

Hardware: Xiaomi Notebook Air 13/Inter Core i7-7500U
Operating system: Windows 10 Home Chinese version Patch: Latest stable patch as of 2019/1/25
Docker: Docker Windows 18.06.1-ce-win73

1. Enable Hyper-V

Create a new hyperv.cmd file with the following content:

pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt

for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

del hyper-v.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

Execute the hyperv.cmd file as an administrator.

If the system asks you to reboot, do so.

Go to控制面板->程序和功能->啟用或關閉Windows功能and turn on Hyper-V.

2. Disguised as Windows 10 Professional

Open cmd as administrator.
Execute the following command:

REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /T REG_EXPAND_SZ /d Professional /F

3. Download Docker for Windows

Official website download link (need to bypass the firewall): https://store.docker.com/editions/community/docker-ce-desktop-windows

Domestic mirror:
https://oomake.com/download/docker-windows (Baidu Netdisk)
https://mirrors.ustc.edu.cn/docker-ce/ (version update is not timely)

Install directly after downloading. When installing, be sure to uncheck the window container (it is not checked by default).

After Docker is installed successfully, execute the cmd command docker version .

Docker for Windows could not read CA certificate issue

Cause of the problem:

Docker toolbox has been installed before.

Solution steps:

  1. Delete four docker environment variables
  2. Execute cmd command docker-machine rm default
  3. Execute cmd command as administrator @FOR /f "tokens=*" %i IN ('docker-machine env -u') DO @%i

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持123WORDPRESS.COM。

You may also be interested in:
  • How to install WSL2 Ubuntu20.04 on Windows 10 and set up the docker environment
  • How to install Docker on Windows 10
  • Teach you how to install docker on windows 10 home edition

<<:  Detailed explanation of the usage of setUp and reactive functions in vue3

>>:  GDB debugging MySQL actual combat source code compilation and installation

Recommend

About using Alibaba's iconfont vector icon in Vue

There are many import methods on the Internet, an...

How to migrate mysql storage location to a new disk

1. Prepare a new disk and format it with the same...

HTML uses canvas to implement bullet screen function

Introduction Recently, I needed to make a barrage...

Vue3 implements Message component example

Table of contents Component Design Defining the f...

Three principles of efficient navigation design that web designers must know

Designing navigation for a website is like laying...

Detailed steps for Python script self-start and scheduled start under Linux

1. Python automatically runs at startup Suppose t...

MySQL Installer 8.0.21 installation tutorial with pictures and text

1. Reason I just needed to reinstall MySQL on a n...

JS implements the dragging and placeholder functions of elements

This blog post is about a difficulty encountered ...

VMware virtual machine installation CentOS 8 (1905) system tutorial diagram

The world-famous virtual machine software VMware-...

How to deploy a simple c/c++ program using docker

1. First, create a hello-world.cpp file The progr...

Detailed tutorial on installing Python 3.8.1 on Linux

This example takes the installation of Python 3.8...

An article to help you thoroughly understand position calculation in js

Table of contents introduction scroll Element.scr...

Examples of using the ES6 spread operator

Table of contents What are spread and rest operat...