docker换源

vim /etc/docker/daemon.json

在daemon.json中写入:

{

"registry-mirrors": ["https://cr.console.aliyun.com/", "http://hub-mirror.c.163.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"]

}

 

最后重启docker:

sudo systemctl daemon-reload

sudo systemctl restart docker

posted @ 2022-05-29 18:14  Shiyu_Huang  阅读(2992)  评论(0编辑  收藏  举报