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

How to install docker in a windows environment

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How do I install docker in a windows environment? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Once Hyper-V is enabled

Open Control Panel-- > programs-- > enable or disable the windows function, check Hyper-V, and then click OK.

After clicking OK, you will be prompted to restart the system.

Second, install Docker

Download address: https://hub.docker.com/editions/community/docker-ce-desktop-windows, must register an account before it can be downloaded, which is very slow to download directly.

Another way to get it is to follow the official account IT to reply to docker to get the installation exe file.

Three start docker

After getting the exe file, click next to complete the installation. After installation, you will be prompted to restart the computer. The docker icon will appear on the desktop. Click launch. Open the windows command line mode, enter docker version or docker-v to view, if the following message appears, the installation is successful.

Fourth, domestic image acceleration

Ali Cloud Image acceleration address: https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

Get the address of the exclusive accelerator, as shown below:

Open docker, right-click Settings-- > Daemon-- > Registry mirrors to copy the address of the dedicated accelerator just now, and you can complete the domestic image acceleration.

5. Mobile image storage directory

Docker under win10 has a visual operation interface and command line operation. After downloading docker-ce.exe, double-click will automatically complete it from start to finish. It is installed to C disk directory by default, that is, many default parameters or configuration files are in C disk directory. Considering that disk C is a system disk, many image files may be pulled during the use of docker, so we need to modify the default image file storage address of docker.

Open the Hyper-V Manager

1. Start menu right-> Control Panel-> Administrative tools-> Hyper-V Manager

Right-click the Hyper-V settings and change the storage path shown in the following figure to the location you want to store.

Then add the following configuration to Settings-- > Daemon-- > Advanced:

Problems that may be encountered

The solution is:

Cd "C:\ Program Files\ Docker\ Docker" DockerCli.exe-SwitchDaemon after reading the above, have you learned how to install docker in the windows environment? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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