构建镜像推送到docker仓库,显示本地镜像不存在,直接上图;
修改docker镜像的tag
docker tag 镜像id 你的账户名/镜像仓库名:tag名
例:
docker tag hello-world 192.168.28.202:5000/hello-world
docker push 192.168.28.202:5000/hello-world
# 查看推送是否成功
curl http://镜像仓库地址/v2/_catalog
# 或浏览器直接访问
http://镜像仓库地址/v2/_catalog