Python Reptile study notes (Forget the past that part of the installation of Docker under win10)

"Whaling" lesson:

1. engage in the computer or try to use Linux systems it

2. It is not, reinstall the system, please install the next version of Windows Professional

3. Install Docker, databases such things best not easily change the installation path

4. If your system is Windows Home Edition, want to use the virtual machine, it still uses Oracle's bar

5. because of "wall", poor bald programmer can not access a lot of technology, resource site, but we have to remember, we have Tsinghua, we have horses Dad, we have a lot of similar same boat, when the resource can not be found Please search: cracked version, free version, the domestic image , installation guide and other key words

 

background:

1.Windows10 Home Edition 64 

problem:

1.Windows Home Edition does not support installing Docker 

solve: 

1.Windows Home Edition does not support Hyper-V, but they need to install Docker, therefore, we need to first install the operating system for the current plug-in version of the family, it disguised as Pro Docker fool the installer:

New  hyperv.txt文件赋值下面的代码保存后更改后缀为hyperv.cmddocument, as follows:

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

As an administrator to perform hyperv.cmdfile, open an administrator cmd (recommended Baidu, go to the C drive to find cmd.exe, and then sends a desktop shortcut, and then run as administrator mode, also can be used later to get).
Then restart, this time added on in the OS on the Hyper-V
in 控制面板->程序->启用或关闭Windows功能open Hyper-V

2. Run the following command, modify the registry, bypassing the version detection:

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

3. Download Docker installation package,

Important things to say! The installation process will "" window container "option, do not choose to keep linux !! !! vessel or very likely because the software does not match the version rather than using - {. Docker does not support your Windows version}}

Of course, the general poverty apes, go the official website are struggling, let alone download, so we have to use a mirror or domestic agents to download, providing a below, download the latest version, note that the downloaded version contains "-ce" character, because it's free:

Docker image download: https://oomake.com/download/docker-windows

Again, do not select the window installation vessel

The installation is complete, it should be OK,

After successful installation, execute the command cmddocker version

However, registration is also quite strenuous. . . . .

4. If the above method does not work, what's wrong on the issue copy Baidu, it is not then try the following method:

Installation DockerToolBox: this time we should thank the father of the horse, see the link below, in addition, if you had not previously installed VMwareWorkstations it is great, if you had installed, please uninstall it clean and Baidu methods, including the registry, because it is likely to have a mess of problems installing Docker (unloaded may have) will be, because Oracle has its own virtual machine platform, installation DockerToolBox will be installed along this virtual machine platform

DockerToolBox Mirror: http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/

Please install DockerToolBox Baidu (refer to this blog ), because I have not loaded successfully (because I installed VMwareWorkstations, appeared MAC address, IP and other issues)

In addition to install Docker will have problems after installation DockerToolBox (so that Windows installation Docker is really messed up):

docker for windows could not read CA certificate问题

Solving steps:

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

5. If all else fails, put the first two days it get another child, maybe two days we found, in fact, we should give up two days before the direct (recommended Linux platform)

 

Configuring Mirroring Acceleration:

Found C:. \ Users (user) \ (hostname) \ docker \ daemon.json

registry-mirrors "in the file: [] parentheses added in the mirror address, restart Docker, mirror locations are the following:

https://dockerhub.azk8s.cn        #Azure 中国镜像 
https://reg-mirror.qiniu.com      #七牛云加速器 
https://registry.docker-cn.com   #Docker中国区
http://hub-mirror.c.163.com     #网易
https://docker.mirrors.ustc.edu.cn       #USTC
https://cr.console.aliyun.com/  #阿里云,需要申请

Now it is 23:13 .. . . WoCao! Finally somehow!

Published 49 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/qq_33360009/article/details/104365935