Creating a private Image library with Docker Registry

Source: Internet
Author: User
Tags docker registry

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.