1 environment
2 steps
3 FAQs
4 references
Environment
Ubuntu-16.04-desktop-amd64.iso
Steps
Specific can refer to blog post, in my environment implementation success, here Jiehuaxianfo: http://www.cnblogs.com/lienhua34/p/4922130.html
FAQs
The only solution to the push failure in the above blog post is not valid in my environment.
The error prompts are as follows:
[Email protected]:/etc/default# sudo docker push 192.168.80.130:5000/hello-world
The push refers to a repository [192.168.80.130:5000/hello-world]
Get Https://192.168.80.130:5000/v1/_ping:http:server gave HTTP response to HTTPS client
I solved it in another way, with the following steps:
[Email protected]:/etc/docker# echo ' {"insecure-registries": ["192.168.80.130:5000"]} ' >/etc/docker/daemon.json
[Email protected]:/etc/docker# systemctl Restart Docker
After executing these two commands, retry the Docker push success:
[Email protected]:/etc/docker# docker Push 192.168.80.130:5000/hello-world
The push refers to a repository [192.168.80.130:5000/hello-world]
A02596fdd012:pushed
LATEST:DIGEST:SHA256:F18D040EA7BF47C7EA8F7FF1A8682811CF37551C747158E37B9C75F5450E6FAC size:2097
Reference
Http://www.111cn.net/sys/linux/118539.htm
Creating a private Image library with Docker Registry