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

How to use environment variables in nginx configuration file

Preface Nginx is an HTTP server designed for perf...

Detailed tutorial on running selenium+chromedriver on the server

1. Introduction I want to use selenium to scrape ...

How to build a complete samba server in Linux (centos version)

Preface smb is the name of a protocol that can be...

Detailed explanation of several ways to install CMake on Ubuntu

apt install CMake sudo apt install cmake This met...

JS realizes special effects of web page navigation bar

This article shares with you a practical web navi...

How to use vue3+TypeScript+vue-router

Table of contents Easy to use Create a project vu...

CSS float (float, clear) popular explanation and experience sharing

I came into contact with CSS a long time ago, but...

Detailed explanation of how to connect Java to Mysql version 8.0.18

Regarding the connection method between Java and ...

11 Linux KDE applications you didn't know about

KDE Abbreviation for Kool Desktop Environment. A ...

Detailed explanation of docker compose usage

Table of contents Docker Compose usage scenarios ...

Introduction to Spark and comparison with Hadoop

Table of contents 1. Spark vs. Hadoop 1.1 Disadva...

Comparison of the use of form element attributes readonly and disabled

1) Scope of application: readonly:input[type="...