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