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

Optimize MySQL with 3 simple tweaks

I don't expect to be an expert DBA, but when ...

Examples of using the ES6 spread operator

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

Detailed explanation of concat related functions in MySQL

1. concat() function Function: Concatenate multip...

How to play local media (video and audio) files using HTML and JavaScript

First of all, for security reasons, JavaScript ca...

Analysis of the principle of Nginx using Lua module to implement WAF

Table of contents 1. Background of WAF 2. What is...

Summary of several submission methods of HTML forms

The most common, most commonly used and most gener...

Vue custom bullet box effect (confirmation box, prompt box)

This article example shares the specific code of ...

Summary of data interaction between Docker container and host

Preface When using Docker in a production environ...

Vue implements drag progress bar

This article example shares the specific code of ...

Solution to the problem that MySQL commands cannot be entered in Chinese

Find the problem Recently, when I connected to th...

Detailed explanation of MySQL three-value logic and NULL

Table of contents What is NULL Two kinds of NULL ...

Problems and pitfalls of installing Mysql5.7.23 in Win10 environment

I read many tutorials, but found that I could nev...

VMware Workstation 15 Pro Installation Guide (for Beginners)

01. VMware Workstation Pro 15 Download Download: ...