Docker push - net / http: TLS acknowledgment timeout

I deployed a private docker image registry on an AWS EC2 Ubuntu 14.04 instance. The registry is protected by a Let Encrypt certificate.

Unfortunately, I get net/http: TLS handshake timeoutfor docker pushoperations whose length exceeds 300 s:

This is the output of the command time'd:

[luqo33@home-pc containers]$ time docker push <my-registry-domain:5000>/nginx                                                    
The push refers to a repository [<my-registry-domain:5000>/nginx]
dda5a806f0b0: Layer already exists
ec35cfccb7f7: Layer already exists
94c1a232bb3f: Layer already exists
6d6b9812c8ae: Layer already exists
695da0025de6: Retrying in 1 second
fe4c16cbf7a4: Pushing [================================================>  ]   119 MB/123 MB
net/http: TLS handshake timeout

real    5m0.847s
user    0m0.097s
sys     0m0.017s

Container logs regsitry:2do not display any errors - except for notification of unexpected EOF when receiving data. I can also click images that take less than 5 minutes to push through without problems.

, , - , 300 . . <my-registry-domain:5000> IP- .

?

, (DigitalOcean), AWS ECS Docker Hub! , Docker - 300 .

, , , - (wi-fi router) -.

- , ?

+4
1

, -, concurrency ( ) 1 dockerd. :

--max-concurrent-downloads  (default: 3)    Set the max concurrent downloads for each pull

--max-concurrent-uploads    (default: 5)    Set the max concurrent uploads for each push

5 , .

https://docs.docker.com/engine/reference/commandline/dockerd/

+3

Source: https://habr.com/ru/post/1663374/


All Articles