Implementation of Docker configuration modification of Alibaba Cloud image repository

Implementation of Docker configuration modification of Alibaba Cloud image repository

The docker repository itself is very slow, but the Alibaba Cloud mirror repository in China is very fast. Of course, you can also use image repositories from other places. There are many of them. The way to configure Alibaba Cloud is as follows:

Configuration steps

1. Apply for an Alibaba Cloud account

First, search for阿里云on Baidu, go to the official website, register an Alibaba Cloud account, and log in with your Taobao account.

2. Find the address of Alibaba Cloud Accelerator

After registration, log in and click on the console first. As shown below:


Then follow the steps below to find the accelerator.


But when you click for the first time, you will be prompted to activate this service. You just need to enter the password, and then:


Select the location as shown above and copy it.

3. Configure Alibaba Cloud Image Repository

Then in our Linux system, run the following command to find the file:

vim /etc/docker/daemon.json

Then add the following content:

{
 "registry-mirrors": ["acceleration address"]
}

加速地址is the accelerator address corresponding to the above.
Finally, save the file, restart the Docker service, and execute the following commands in sequence:

sudo systemctl daemon-reload 

sudo systemctl restart docker

After execution, you can drag the image again. The speed is improved.

This is the end of this article about how to configure and modify Alibaba Cloud's image repository with Docker. For more information about how to configure and modify Alibaba Cloud's image repository with Docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to build a docker local image warehouse under centos7 system
  • Tutorial on how to create a private image repository with Docker
  • How to use domestic image warehouse for Docker
  • Detailed explanation of using Alibaba Cloud image repository to build foreign Docker images
  • .NETCore Docker implements containerization and private image repository management
  • Steps for Docker to build its own local image repository
  • Example of setting up a private Docker image repository on a CentOS 7.2 server
  • Detailed explanation of building a Docker private image repository based on Harbor
  • How to use Alibaba Cloud image repository with Docker
  • How to build a private image repository with Docker
  • How to use Docker image repository

<<:  js to achieve a simple magnifying glass effect

>>:  MySQL 5.7.29 + Win64 decompression version installation tutorial with pictures and text

Recommend

Detailed explanation of two ways to dynamically change CSS styles in react

The first method: dynamically add a class to show...

MySQL automatically inserts millions of simulated data operation code

I use Navicat as my database tool. Others are sim...

MySQL replication mechanism principle explanation

Background Replication is a complete copy of data...

4 ways to optimize MySQL queries for millions of data

Table of contents 1. The reason why the limit is ...

Installing MySQL 8.0.12 based on Windows

This tutorial is only applicable to Windows syste...

MySQL 5.6.37 (zip) download installation configuration graphic tutorial

This article shares the download, installation an...

Detailed explanation of using split command to split Linux files

A few simple Linux commands let you split and rea...

Quickly install MySQL5.7 compressed package on Windows

This article shares with you how to install the M...

Detailed explanation of Vue save automatic formatting line break

I searched for many ways to change it online but ...

Box-shadow and drop-shadow to achieve irregular projection example code

When we want to add a shadow to a rectangle or ot...

Docker custom network detailed introduction

Table of contents Docker custom network 1. Introd...

Understanding MySQL clustered indexes and how clustered indexes grow

In this note, we briefly describe What is the B+T...

Use nginx to configure domain name-based virtual hosts

1. What is a virtual host? Virtual hosts use spec...