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 and use Docker under Windows10

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

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to install and use Docker under Windows10". In daily operation, I believe many people have doubts about how to install and use Docker under Windows10. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install and use Docker under Windows10". Next, please follow the editor to study!

Docker for windows is currently only available in windows10 version, and Docker Toolbox can only be used for those under 10.

This article only talks about installation and use under win10:

1, download must pay attention to the complete download, it is best to check, otherwise the installation may make errors.

2. Make sure that win10 has enabled the Hype-v virtualizer before installation. (restart is required after enabling)

3. Start installing docker and complete the installation according to the default settings. Finally, the icon of docker will appear in the lower right corner. Wait a moment, open cmd and enter the docker info command to check whether the installation is successful.

4. Due to the problem of domestic network, it is recommended to use domestic accelerator. Take Aliyun Docker accelerator as an example to illustrate:

First of all, register in Aliyun (https://cr.console.aliyun.com) to obtain a dedicated acceleration address.

Right-click on the docker icon in the lower right corner to open the settings dialog box and fill in the accelerator address above according to the figure.

5. Run hello-world verification:

Docker run hello-world

If nothing happens, the following will be output:

Hello from Docker.This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps:1. The Docker client contacted the Docker daemon.2. The Docker daemon pulled the "hello-world" image from the Docker Hub.3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

You can continue to verify with the following command (it feels much faster than not using an accelerator):

Docker run-it ubuntu bash

Normally, you will enter the ubuntu interface.

PS C:\ Users\ jdoe > docker run-it ubuntu bashUnable to find image 'ubuntu:latest' locallylatest: Pulling from library/ubuntu5a132a7e7af1: Pull completefd2731e4c50c: Pull complete28a2f68d1120: Pull completea3ed95caeb02: Pull completeDigest: sha256:4e85ebe01d056b43955250bbac22bdb8734271122e3c78d21e55ee235fc6802dStatus: Downloaded newer image for ubuntu:latest

The next step is to explore the world of Docker by yourself. Have a nice adventure!

Add: if the docker startup error, be sure to check the BIOS CPU is enabled to open the virtual machine, if open its own Baidu. After opening it successfully, you should be able to see it in the task manager.

At this point, the study on "how to install and use Docker under Windows10" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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