Summary of problems encountered when installing docker on win10 home version

Summary of problems encountered when installing docker on win10 home version

Docker download address: http://get.daocloud.io/#install-docker-for-mac-windows

1. First, I downloaded Docker for Windows directly. When I installed it, I found that the Win10 Home Edition does not support the Hyper-V function. Only the Professional Edition has it. I cannot install Docker directly. I need to install it through the Docker Toolbox. So I downloaded the Docker Toolbox and installed it.

2. There is a list of optional installations during installation. Because I have already installed git, I did not check git for windows. After the installation is complete, I start docker quickstart and it reports an error that bash.exe cannot be found. It turns out that docker needs to be started through git bash. In the docker startup target properties, the default git bash path needs to be changed to the path in the git installed by myself. Right-click the docker quickstart terminal on the desktop to open the properties and modify it

3. After the modification is completed, open quickstart again, the terminal can be opened, but the error This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory is reported. I checked on Google and found that it was because the computer did not have the virtualization function turned on. Restart the computer and press F2 to enter the BIOS settings. Set the Virtualization Thchnology property to enable. Then turn on the computer and check the taskbar -> performance to see that the virtualization function is turned on.

4. Open the terminal again and find that the same error message is still reported: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory. I searched for solutions online, entered bcdedit /set hypervisorlaunchtype Auto in the command prompt in administrator mode, and then restarted the computer, but it didn't work. So I tried uninstalling and reinstalling, to no avail

5. Find another solution, open the docker toolbox installation directory, edit the start.sh file with the editor, and find the following code snippet

STEP="Checking if machine $VM exists"
if [ $VM_EXISTS_CODE -eq 1 ]; then
 "${DOCKER_MACHINE}" rm -f "${VM}" &> /dev/null || :
 rm -rf ~/.docker/machine/machines/"${VM}"
 #set proxy variables if they exists
 if [ "${HTTP_PROXY}" ]; then
  PROXY_ENV="$PROXY_ENV --engine-env HTTP_PROXY=$HTTP_PROXY"
 fi
 if [ "${HTTPS_PROXY}" ]; then
  PROXY_ENV="$PROXY_ENV --engine-env HTTPS_PROXY=$HTTPS_PROXY"
 fi
 if [ "${NO_PROXY}" ]; then
  PROXY_ENV="$PROXY_ENV --engine-env NO_PROXY=$NO_PROXY"
 fi
 "${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV "${VM}"
fi

The second to last line is where the virtual machine is created:

"${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV "${VM}"

Modify the line and add --virtualbox-no-vtx-check . The end result is:

"${DOCKER_MACHINE}" create -d virtualbox --virtualbox-no-vtx-check $PROXY_ENV "${VM}"

Start the terminal again, the above error is no longer reported, but the following is reported instead: boot2docker is not found, and automatic download fails

Go directly to github to download, https://github.com/boot2docker/boot2docker/releases/download/v19.03.3/boot2docker.iso

6. After the download is complete, go to C:\Users\syc\.docker\machine\cache (your own directory) above to replace the temporary file that just failed to download, and then restart the docker terminal. The following error is reported: Error in driver during machine creation: Unable to start the VM

7. I don’t know what happened. I guess it might be because I didn’t follow the default path when installing, so I uninstalled and reinstalled it, followed the default installation all the way, restarted several times, and finally it succeeded inexplicably. Oh, it’s really a headache. I don’t understand what these configurations are about. I just try to figure out the solutions on the Internet, but I still don’t know how they work after I’ve tried them. If you want to use Windows, you still need the professional version. The home version is sometimes really inconvenient. Otherwise, you can use Linux.

Summarize

The above is a summary of the problems encountered when installing docker on win10 home version. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • Install Docker for Windows on Windows 10 Home Edition
  • How to install Docker on Windows 10 Home Edition

<<:  How to encapsulate axios request with vue

>>:  Correct use of MySQL partition tables

Recommend

Practical solution for Prometheus container deployment

environment Hostname IP address Serve Prometheus ...

How to install PHP7.4 and Nginx on Centos

Prepare 1. Download the required installation pac...

A problem with MySQL 5.5 deployment

MySQL deployment Currently, the company deploys M...

How to query data from multiple unrelated tables and paging in Mysql

Mysql multiple unrelated tables query data and pa...

Implementation of form submission in html

Form submission code 1. Source code analysis <...

What do CN2, GIA, CIA, BGP and IPLC mean?

What is CN2 line? CN2 stands for China Telecom Ne...

MySQL slave library Seconds_Behind_Master delay summary

Table of contents MySQL slave library Seconds_Beh...

Various methods to implement the prompt function of text box in html

You can use the attribute in HTML5 <input="...

Vue implements simple slider verification

This article example shares the implementation of...

Detailed explanation of CSS3 rotating cube problem

3D coordinate concept When an element rotates, it...

Vue implements login verification code

This article example shares the specific code of ...

JavaScript single thread and asynchronous details

Table of contents 1. Task Queue 2. To explain som...

JavaScript implements three common web effects (offset, client, scroll series)

Table of contents 1. Element offset series 2. Ele...