#启动registry
docker run -d -p5000:5000--restart=always --name registry -v `pwd`/data:/var/lib/registry registry:2
#构建镜像
docker build -t 192.168.1.13:5000/config-server ./config-server
#推送镜像
docker push 192.168.1.13:5000/config-server
#虚机拉取镜像
sudo docker pull 192.168.1.13:5000/config-server
#重新tag
sudo docker tag 192.168.1.13:5000/config-server config-server