Get the App
SLTechnology News&Howtos  ›  Servers  › 

Usage of Docker Mirror Accelerator

Shulou Source: shulou.com Published: 2022-06-03 05:46:21 10月25日 Update

It is sometimes difficult to pull an image from DockerHub in China, so you can configure the image accelerator. Docker officials and many domestic cloud service providers provide domestic accelerator services, such as:

China Image Repository officially provided by Docker: https://registry.docker-cn.com

1. Add an accelerator

[root@localhost ~] # echo'{"registry-mirrors": ["https://registry.docker-cn.com"]}' > > / etc/docker/daemon.json"

2. Restart the service

[root@localhost ~] # systemctl daemon-reload

[root@localhost ~] # systemctl restart docker.service

3. Check whether the accelerator is in effect

[root@localhost ~] # docker info

Tags: Accelerator Mirror Service official difficulty Warehouse China Commercial Capital configuration method of use method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Microsoft Xiaomi Apple vpn