Get the App
SLTechnology News&Howtos  ›  Servers  › 

Docker installation and how to configure Aliyun Image Accelerator

Shulou Source: shulou.com Published: 2022-06-02 14:43:09 10月04日 Update

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.

Tags: Mirror Ali Accelerator configuration Command system run Warehouse article version Storage Service success No content address the latest version yes needless to say Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Shulou Tech Info Docker MariaDB OPPO Reno