Docker(3)- Centos 7.x 下 Docker 鏡像加速配置

若是你還想從頭學起 Docker,能夠看看這個系列的文章哦!html

https://www.cnblogs.com/poloyy/category/1870863.htmldocker

 

前言

  • 默認狀況下,Docker 下載鏡像是從官網下載,下載速度 特別特別的慢
  • 使用國內加速器能夠提高獲取 Docker 官方鏡像的速度

 

國內鏡像加速操做

直接複製便可到 Linux 下回車便可json

配置多個地址,避免某個站點不行時自動切換到後面的站點阿里雲

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["http://hub-mirror.c.163.com",
    "https://docker.mirrors.ustc.edu.cn",
    "https://reg-mirror.qiniu.com"
  ]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker

 

阿里雲鏡像加速地址

相關文章
相關標籤/搜索