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 on Windows10 system

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

Share

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

This article mainly explains "how to install Docker in Windows10 system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Docker in Windows10 system.

1. Download Docker

Docker can be installed on mac, windows, linux. In windows system, Docker only supports win10 Professional Edition and Enterprise Edition, and win7/win8/win10 Home Edition needs to be installed through Docker toolbox.

Download address: https://www.docker.com/products/docker-desktop, the latest version is: DockerToolbox-18.03.0-ce.exe

2. Install Docker

Note: the virtualization feature of CPU needs to be enabled in advance, as indicated in the red section of the following figure:

Double-click the downloaded exe file, and during the installation process, you will be prompted to install the plug-in, and click "agree". After the installation is complete, three icons will be generated on the desktop:

3. Run Docker

Double-click "Docker Quickstart Terminal" to enter the Docker client. If there are any errors in the process of running, you can find a solution on the Internet.

Note: the Docker environment will be initialized when starting for the first time, and a linux virtual machine named [default] will be created in VirtualBox. In this process, the "boot2docker.iso" image file will be used. By default, it will be downloaded from GitHub, or it can be downloaded by itself, and then placed in the directory C:\ Users\ {username}\ .docker\ machine\ cache directory, and then started to initialize.

After a few minutes, the interface is as follows, indicating that Docker is running successfully:

4. Change the storage location of Docker VMDK files

Start VM VirtualBox Manager, click manage-> Virtual Media Management, select the existing disk.vmdk, then click "copy" marked in red to copy, select "VMDK (virtual machine disk)" in the virtual disk type, and select the storage path cake in the new virtual disk to create to complete the replication function.

Close the virtual machine, right-click on the virtual machine name "default", select Settings-> Storage, click "add Virtual disk" to the right of "Controller: SATA", select "use existing Virtual disk", select the new vmdk file just copied above, and select OK.

5. Modify the Docker image address

1) enter under the command line (docker-machine ssh default enters the command line, where you can view Docker-related information through docker info):

Sudo sed-I "s | EXTRA_ARGS=' | EXTRA_ARGS='--registry-mirror=" is replaced with its own image address "| g" / var/lib/boot2docker/profile

2) modify the file directly

After entering the command line with docker-machine ssh default, enter the directory: / var/lib/boot2docker/etc/docker, modify the daemon.json file, and add:

{

"registry-mirrors": ["https://xxxxxxxx.mirror.aliyuncs.com"]"

}

6. Log in to the default virtual machine

Default user name and password: docker/tcuser

You can log in to the default virtual machine using XShell or other SSH clients

7. Obtain the image

The command to obtain an image from the Docker image repository is docker pull. The command format is:

Docker pull [option] [Docker Registry address [: Port number] /] Warehouse name [: label]

1) Docker image repository address: generally speaking, the format of the address is [: Port number]. The default address is Docker Hub.

2) Warehouse name: as mentioned earlier, the warehouse name here is a two-paragraph name, namely /. For Docker Hub, if the user name is not given, it defaults to library, that is, the official mirror.

Like.

3) tag: for example, the version number can be used as a label

Example: docker pull ubuntu:18.04

At this point, the first startup process of Docker is complete.

Thank you for reading, the above is the content of "how to install Docker in Windows10 system". After the study of this article, I believe you have a deeper understanding of how to install Docker in Windows10 system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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