HTTPS error resolution for Docker registry

Source: Internet
Author: User
Tags docker registry

Starting with the docker1.3.2 version, the default Docker registry uses HTTPS, and when you use Docker pull non-HTTPS Docker regsitry, the following error is reported:

Java code
    1. Error:invalid Registry Endpoint ... Get ... If This private registry supports only HTTP or HTTPS with a unknown CA certificate, please add '--insecure-re Gistry 192.168.1.103:5000 ' to the daemon' s arguments. In the case of HTTPS, if you have access to the Registry's CA certificate, no need for the flag; simply place the CA C Ertificate at/etc/docker/certs.d/192.168. 1.103:5000/ca.crt

Solution:

Java code
    1. Vi/usr/lib/systemd/system/docker.service

The content is modified as follows:

Java code
  1. [Unit]
  2. Description=docker Application Container Engine
  3. Documentation=http://docs.docker.com
  4. After=network.target Docker.socket
  5. Requires=docker.socket
  6. [Service]
  7. Type=notify
  8. Environmentfile=-/etc/sysconfig/docker
  9. Environmentfile=-/etc/sysconfig/docker-storage
  10. execstart=/usr/bin/docker-d--insecure-registry 192.168. 1.103:5000-h FD://$OPTIONS $DOCKER _storage_options
  11. limitnofile=1048576
  12. limitnproc=1048576
  13. [Install]
  14. Wantedby=multi-user.target

HTTPS error resolution for 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.