1修改daemon.json文件
[root@openstack-com ~]# vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://8mkqrctt.mirror.aliyuncs.com"],
"insecure-registries": [ "registry.aliyun.com" ] #horber仓库地址
}
~
2.重启dockerf服务
systemctl restart docker
3 登录 horber 仓库
docker login registry.aliyun.com
本文介绍如何通过修改daemon.json文件配置阿里云Docker镜像加速,包括添加镜像仓库镜像、重启Docker服务及登录阿里云仓库的具体步骤。

1645

被折叠的 条评论
为什么被折叠?



