Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of the problems encountered in installing docker in win10 Home Edition

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

1. First of all, I downloaded docker for windows directly, and when I installed it, I found that win10 Home Edition does not support hyper-v function, only the professional version has it, so I can't install docker directly. I need to install it through docker toolbox, so I download docker toolbox and then install it.

two。 Install a string of optional installation list, because I have installed git, do not check git for windows, after the installation is completed, start docker quickstart, directly report an error can not find bash.exe, the original docker needs to be started through git bash, in the docker startup target attribute to change the default git bash path to the path of your own installation of git. Right-click the docker quickstart terminal on the desktop to open the properties to modify it

3. After the modification is completed, open quickstart,terminal can be opened, but the error This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory . Google checked because the computer did not enable the virtualization function. Restart the computer, press F2 to enter the BIOS setting, set the Virtualization Thchnology property to enable, and then turn on the computer. The virtualization function that can be seen in the taskbar-> performance has been enabled.

4. Open terminal again and find that it still reports the same error This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory . Search for the solution on the Internet, enter bcdedit / set hypervisorlaunchtype Auto at the command prompt in administrator mode, and then restart the computer. So it's useless to try to unload and reload.

5. Find another solution, open the docker toolbox installation directory, edit the start.sh file in 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

On the penultimate 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 terminal again, no longer report the above error, but instead report as follows: no boot2docker found, automatic download failed

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

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

7. I don't know what happened. I guess I didn't follow the default path during installation, so I uninstalled it again, installed it by default all the way, restarted it several times, and finally succeeded inexplicably. Ah, I really have a headache. I don't understand what these configurations are all about. I just know how to toss and turn around according to the online solution, and I don't know how good it is. If you want to use the windows system, you still have to use the professional version. Sometimes the home version is really inconvenient, or you can use Linux.

Summary

The above is a summary of the problems encountered in the installation of docker in win10 Home Edition introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report