1. 拉去registry镜像
docker pull registry
2. 运行registry镜像 指定端口-p
(base) PS C:\Users\User> docker run -d --name registry -p 5000:5000 registry
4216abd7aeb67f6acc5e23ef7a440ad0b4dcda7a2a2c8c39352f58c9ecd282f2
3. 镜像打标签tag
镜像前面加上本地主机ip, 端口设置5000
(base) PS C:\Users\User> docker tag openvino/ubuntu18_dev 192.168.1.113:5000/openvino/ubuntu18_dev
4. 将打标签的镜像推送到本地仓库
将镜像推送的仓库
(base) PS C:\Users\User> docker push 192.168.1.113:5000/openvino/ubuntu18_dev
Using default tag: latest
The push refers to repository [192.168.1.113:5000/openvino/ubuntu18_dev]
Get https://192.168.1.113:5000/v2/: http: server gave HTTP response to HTTPS client
默认情况push的协议是https,而registry是http协议
(base) PS C:\Users\User> docker push 192.168.1.113:5000/openvino/ubuntu18_dev
Using default tag: latest
5. 验证
# 启动registry服务
(base) PS C:\Users\User> docker start registry
能正常拉去在这里插入图片描述