Windows+WSL2 build docker local mirror warehouse

1. Pull to the registry mirror

docker pull registry

2. Run the registry mirror to specify the port -p

(base) PS C:\Users\User> docker run -d --name registry -p 5000:5000 registry
4216abd7aeb67f6acc5e23ef7a440ad0b4dcda7a2a2c8c39352f58c9ecd282f2

3. Mirroring and tagging

Add the ip of the local host in front of the mirror, and set the port to 5000

(base) PS C:\Users\User> docker tag openvino/ubuntu18_dev 192.168.1.113:5000/openvino/ubuntu18_dev

4. Push the tagged image to the local warehouse

The warehouse to push the image

(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

By default, the push protocol is https, and the registry is http protocol

Insert picture description here

(base) PS C:\Users\User> docker push 192.168.1.113:5000/openvino/ubuntu18_dev
Using default tag: latest

5. Verification

# 启动registry服务
(base) PS C:\Users\User> docker start registry

Can be pulled normally, insert picture description here
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_40437821/article/details/114377515