docker adds domestic image

王林
Release: 2021-01-07 11:28:15
forward
7204 people have browsed it

docker adds domestic image

Students who have used docker know that the default image address of docker is very slow when pulling the image, and may even time out. To solve this problem, we can add a domestic mirror address.

(Learning video sharing: Programming video)

1. Domestic acceleration address

Docker China official image

https://registry.docker-cn.com
Copy after login

NetEase

http://hub-mirror.c.163.com
Copy after login

ustc

https://docker.mirrors.ustc.edu.cn
Copy after login
Copy after login

University of Science and Technology of China

https://docker.mirrors.ustc.edu.cn
Copy after login
Copy after login

Alibaba Cloud Container Service

https://cr.console.aliyun.com/
Copy after login

Click "Create my container image" on the homepage to get a dedicated image acceleration address, similar to "https://1234abcd.mirror.aliyuncs.com"

2. Add method

2.1 Add "https://registry.docker-cn.com" to the registry-mirrors array.

[root@localhost ~]# vim /etc/docker/daemon.json 
{
  "registry-mirrors": ["https://registry.docker-cn.com"]
}
[root@localhost ~]# systemctl restart docker.service
Copy after login

2.2 Use command mode to add

[root@localhost ~]# dockerd --registry-mirror=https://registry.docker-cn.com
Copy after login

Related recommendations: docker tutorial

The above is the detailed content of docker adds domestic image. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template