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

Docker installation and how to configure Aliyun Image Accelerator

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

Share

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

What the editor wants to share with you this time is the installation of Docker and how to configure Aliyun Mirror Accelerator. The article is rich in content. Interested friends can learn about it. I hope you can get something after reading this article.

Docker installation

Windows installation needless to say, because Docker is open source, so go directly to the official website to download the installation package and install it.

In fact, the installation of the Linux system is also very simple. As soon as you write it down according to the command given by the official website, the installation is successful, and then start the service and you can use it. For example: my system is CentOS7, and its installation is as follows:

I haven't installed any other version of Docker before, so I don't have to uninstall the old version of Docker, just copy and paste the execution command to install it according to the first installation method given by him.

Install the yum-utils package, provide yum-config-manager programs, and create a stable docker repository

Start the docker repository

Enable test channel

Disable the docker repository

Install the latest version of Docker

Then, start the Docker service

View Docker installation command: docker version

At this point, the latest version of docker has been installed and started successfully.

Docker configure Ali Cloud Accelerator Image

Because docker's warehouse is a foreign site, access is very slow, so you can use Aliyun's image warehouse.

Premise: sign up for an Aliyun developer account

When you go to Aliyun container image service and click on the image accelerator, you will get an address of your own image accelerator, and then configure it according to your system according to the operation documentation.

You can execute: cat / etc/docker/daemon.json check, as shown in the following figure. Of course, the image address is your own.

Of course, I am really worried. You can use the docker info command to check whether the image warehouse is an Aliyun image. I am sure there will be no problem.

Run hello-world Mirror

Since I have already run it once, I will run it directly this time. The first run will prompt me that the image cannot be found locally, then go to Aliyun to download the image and run it again.

After reading this article about Docker installation and how to configure Aliyun Image Accelerator, if you think the article is well written, you can share it with more people.

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