如果你還想從頭學起 Docker,可以看看這個系列的文章哦!
https://www.cnblogs.com/poloyy/category/1870863.html
前言
- 默認情況下,Docker 下載鏡像是從官網下載,下載速度特別特別的慢
- 使用國內加速器可以提升獲取 Docker 官方鏡像的速度
國內鏡像加速操作
直接復制即可到 Linux 下回車即可
配置多個地址,避免某個站點不行時自動切換到后面的站點
# 1.創建一個目錄 sudo mkdir -p /etc/docker # 2.編寫配置文件 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 # 3.重啟服務 sudo systemctl daemon-reload sudo systemctl restart docker
阿里雲鏡像加速地址
- 阿里雲鏡像獲取地址:https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
- 登錄后,左側菜單選中鏡像加速器就可以看到你的專屬地址了