about
使用docker pull
時,拉取鏡像太慢,無非就是鏡像在國外.....
解決辦法,就是配置國內的鏡像源,一般由阿里家的、網易家的、docker中國官方的.....
推薦方案
- 編輯
/etc/docker/daemon.json
文件(沒有該文件就創建),中加下面參數(注意json串的格式):
{
"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com", "https://registry.docker-cn.com"]
}
- 重啟docker服務:
systemctl restart docker
that's all
see also: