8.Docker private warehouse

8.1 private warehouse set up and configuration

(1) Pull private warehouse image (this step is omitted)

docker pull registry

(2) Start private container warehouse

docker run -di --name=registry -p 5000:5000 registry

(3) Open the browser and enter the address http://192.168.184.141:5000/v2/_catalog see {"repositories":[]}representation of private warehouse and build a successful content is empty

(4) modified daemon.json

we /etc/docker/daemon.json

Add the following content, save and exit.

{"insecure-registries":["192.168.184.141:5000"]} 

This step allows docker trust for private warehouse address

(5) Restart docker Service

systemctl restart docker

8.2 Mirroring uploaded to a private warehouse

(1) This marked as private mirror image warehouse

docker tag jdk1.8 192.168.184.141:5000/jdk1.8

(2) container to start again PW

docker start registry

(3) labeled image upload

docker push 192.168.184.141:5000/jdk1.8

Guess you like

Origin www.cnblogs.com/sdrbg/p/11318652.html