精彩评论
- limaolin(6个月前 (11-13))
你好
评:第四章: bind域名DNS技术
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | cat /etc/docker/daemon.json { "exec-opts": ["native.cgroupdriver=systemd"], "log-driver": "json-file", "log-opts": { "max-size": "100m"<br /> }, "storage-driver": "overlay2", #存储模式 "storage-opts": [ "overlay2.override_kernel_check=true" ], "registry-mirrors": ["<a href="https://petipo7x.mirror.aliyuncs.com">https://petipo7x.mirror.aliyuncs.com</a>"], #远程仓库 "insecure-registries":["172.20.20.20"] #这个就是本地私钥仓库 ,同时也是docker 镜像受信任的,必须添加在这里k8s也是一样的 } docker login 172.20.20.20 #登记默认用户密码 admin / Harbor123456 docker info #查看docker详情信息,包括镜像加速地址<br /> docker pull mysql:5.7.38 #下载docker镜像 docker images #镜像列表 docker tag mysql:5.7.38 172.20.20.20/public/mysql:5.7.38 #把镜像做一个标签,上传到仓库去 tag docker push 172.20.20.20/public/mysql:5.7.38 #推送到私钥仓库去 |
[]
「梦想一旦被付诸行动,就会变得神圣,如果觉得我的文章对您有用,请帮助本站成长」
上一篇:四,Docker私有仓库部署
下一篇:第一章:什么是NAT网关?
共 0 条评论关于"五,Docker 国内镜像加速"
最新评论