• 周六. 10 月 5th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

Introduction to docker (2) configuration of image accelerator

King Wang

1 月 3, 2022

 

 

      One . Why download the image Accelerator

 

By default , from dockerhub Upload and download docker The image is too slow , Image accelerators are usually configured

     ustc: Image accelerator of CUHK

      Alibaba cloud

    Tencent cloud

    Netease cloud

 

Default here Download Tencent cloud

Two . Specific steps

 

install docker

1. Install dependency packages

  sudo yum install -y yum-utils device-mapper-persistent-data lvm2

2. Set alicloud image source

sudo yum-config-manager –add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3. install Docker-CE

sudo yum install docker-ce

4. start-up Docker-CE

sudo systemctl enable docker

sudo systemctl start docker

 

5. Image acceleration configuration

 

mkdir  /etc/docker/daemon.conf

 

{
"registry-mirrors": [
"https://mirror.ccs.tencentyun.com"
]
}

Restart Docker service .

 

systemctl daemon-reload

systemctl restart docker

 

 

 

 

 

 

 

发表回复