标签:私有仓库 etc -name pull docker systemctl https code start
在192.168.1.244上搭建私有仓库{
"registry-mirrors": ["https://frz7i079.mirror.aliyuncs.com"], #有逗号
"insecure-registries": ["192.168.1.244:5000"]
}
#systemctl restart docker
#docker pull nginx
#docker tag nginx 192.168.1.244:5000/nginx
#docker push 192.168.1.244:5000/nginx
在所有k8s节点上
#vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://frz7i079.mirror.aliyuncs.com"], #有逗号
"insecure-registries": ["192.168.1.244:5000"]
}
#systemctl restart docker
#docker pull 192.168.1.244:5000/nginx
标签:私有仓库 etc -name pull docker systemctl https code start
原文地址:https://blog.51cto.com/dongdong/2424978