标签:run _id apache 镜像 http .json mct emctl restart
docker run -d -p 5000:5000 --name regis registry:2
# 使用新Registry为镜像打标签
docker tag IMAGE_ID IP:PORT/USER/IMAGE_NAME
# ps: docker tag 1b73ec918f67 10.10.10.30:5000/test/apache2
docker push 10.10.10.30:5000/test/apache2
# 在/etc/docker下新建一个daemon.json文件
$ vim /etc/docker/daemon.json
{ "insecure-registries":["IP:5000"] }
# 重启docker
$ systemctl restart docker
# 检查并启动Registry
$ systemctl start regis
# 重新上传镜像即可
标签:run _id apache 镜像 http .json mct emctl restart
原文地址:https://www.cnblogs.com/hadeian/p/10526309.html