修改文件 /etc/docker/daemon.json
vi /etc/docker/daemon.json
添加以下内容后,重启docker服务:
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
其他源地址:
Docker 官方中国区 (很慢,不要用)
https://registry.docker-cn.com
网易
http://hub-mirror.c.163.com
中国科技大学
https://docker.mirrors.ustc.edu.cn
阿里云的话,要自己登录账号去查看。