Docker 1.12.0 Private Warehouse HTTPS problem

Source: Internet
Author: User

Docker version is 1.12.0
CentOS 7


Because I didn't play Docker myself, there was a problem with my colleague:

21:07:24 localhost dockerd:time= "2016-08-17t21:07:24.864612251+08:00" Level=error msg= "attempting next endpoint For push after Error:get https://192.168.41.80:5001/v2/: Dial TCP 192.168.41.80:5001:getsockopt:connection refused "

21:07:24 localhost dockerd:time= "2016-08-17t21:07:24.864884008+08:00" Level=error msg= "attempting next endpoint For-Push after error:get https://192.168.41.80:5001/v1/_ping:dial TCP 192.168.41.80:5001:getsockopt:connection Refuse D



Very depressed, has been https but searched a lot of articles are saidWorkaround:
Vim/etc/default/docker
Add the following line
docker_opts= "$DOCKER _opts--insecure-registry=104.131.173.242:5000"
Restart Docker
sudo service docker restart



Similar to the above, but I would like to say that this is not right, this file is not added itself is no effect nor suspense, flip the wall others August 2 reply to the solution

  • Create or Modify/etc/docker/daemon.json

    { "insecure-registries":["myregistry.example.com:5000"] }

  • Restart Docker Daemon

      systemctl restart docker.service


Perfect solution.


It took 2 hours. I hereby record

This article is from the direction of the road. Confused "blog, be sure to keep this source http://qidai.blog.51cto.com/6435621/1839702

Docker 1.12.0 Private warehouse HTTPS issues

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.