登录私服
vi /etc/docker/daemon.json
"insecure-registries":["192.168.198.155:5000"]
systemctl daemon-reload
systemctl restart docker
并上传镜像
docker tag lagou/jenkinsdemo:v1 192.168.198.155:5000/lagouedu/jenkinsdemo:v1
docker push 192.168.198.155:5000/lagouedu/jenkinsdemo:v1
docker rmi -f lagou/jenkinsdemo:v1
网友评论