其他分享
首页 > 其他分享> > docker换源

docker换源

作者:互联网

vim /etc/docker/daemon.json

在daemon.json中写入:

{

"registry-mirrors": ["https://registry.docker-cn.com","https://nrbewqda.mirror.aliyuncs.com","https://dmmxhzvq.mirror.aliyuncs.com","http://hub-mirror.c.163.com"]

}

 

最后重启docker:sudo service docker restart

标签:aliyuncs,json,换源,https,mirror,docker,com
来源: https://www.cnblogs.com/huangshiyu13/p/16324482.html