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.1.12: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.1.12:5000"]}
This step allows docker trust for private warehouse address
(5) Restart docker Service
systemctl restart docker
Mirroring uploaded to a private warehouse
(1) This marked as private mirror image warehouse
docker tag django2.0 192.168.1.12:5000/django2.0
(2) container to start again PW
docker start registry
(3) labeled image upload
docker push 192.168.1.12:5000/django2.0