Home > other >  After registry for help: private warehouse building, other network machine cannot pull and push, onl
After registry for help: private warehouse building, other network machine cannot pull and push, onl

Time:10-11

set up under the ubuntu docker registry, IP 192.168.4.134 ubuntu1804
(HTTP: server gave, the HTTP response to HTTPS client error, also have been resolved)

The machine test can successfully from the registry to pull and push
Sudo docker pull 192.168.4.134:5000/busybox

But in a network of other machine 192.168.4.129 centos7
Has been unable to success:
Docker pull 192.168.4.134:5000/busybox
Thought is the cause of the HTTPS, modified the vim/usr/lib/systemd/system/docker. Service # centos, and restart the
Sudo docker stop private_registry
Sudo docker rm private_registry

To perform the pull is still an error
The Error response from the daemon: Get http://192.168.4.134:5000/v2/:.net/HTTP: request canceled (the Client) Timeout exceeded while awaiting headers)


Intranet response timeout?
Try on the 4.134 registry this view logs:
Sudo docker logs private_registry
Only the curl of the log, not to pull any logs, seems to be on the network didn't come here,

Try to get on the 4.129 4.134 the registry on the list:
$curl - XGET http://192.168.4.134:5000/v2/_catalog
{" repositories: "[]" busybox "}
Was a success!

Telnet 192.168.4.134 5000
Also pass,

But enforcement docker pull 192.168.4.134:5000/busybox is prompt timeout,

The firewall are closed on both sides of the
Centos:
The iptables -f
Ubuntu:
Sudo ufw status
Status: inactive

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Then try to add in registry end user name password:
Docker login 192.168.4.134:5000
Username: the Username
Password:
The Error response from the daemon: Get http://192.168.4.134:5000/v2/:.net/HTTP: request canceled (Client) Timeout exceeded while awaiting headers)
This error is still,

~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
18 px] [size= help you boss: this is probably what's the problem? How to troubleshoot?
[/size]

CodePudding user response:

In your other machines on the/etc/docker/daemon. The json file to add "insecure - registries:" [" IP mirror warehouse "]
try?
And push away is HTTPS and not HTTP, so I want you to push other machines using HTTPS by default so you add after the above content should restart docker
  • Related