【Linux】修改镜像源为阿里镜像

由于docker默认镜像源为国外官方源,下载速度较慢。设置国内镜像源可加速

1)修改文件 /etc/docker/daemon.json

# vi /etc/docker/daemon.json

2)添加以下内容后,重启docker服务:

{
    
    
   "registry-mirrors": ["https://pee6w651.mirror.aliyuncs.com"]
}

3)重启服务

# systemctl stop docker
# systemctl start docker

其他源地址:

Docker 官方中国区

https://registry.docker-cn.com

网易

http://hub-mirror.c.163.com

中国科技大学

https://docker.mirrors.ustc.edu.cn

阿里云

https://pee6w651.mirror.aliyuncs.com

猜你喜欢

转载自blog.csdn.net/Black_Customer/article/details/107767851