Docker push - net/http: TLS handshake timeout

前端 未结 2 686
你的背包
你的背包 2021-02-15 18:06

I\'ve deployed a private docker image registry on an AWS EC2 Ubuntu 14.04 instance. The registry is secured using Let\'s Encrypt certificate.

Unfortunately, I\'m getting

相关标签:
2条回答
  • 2021-02-15 18:40

    I got the same issue, this issue is may be from your internet connection, I solved it by decrementing the concurrency uploads (downloads for get) to 1 in dockerd. By using these args:

    --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
    

    uploading 5 images in same time may result a timeout if you have a low bandwidth.

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

    0 讨论(0)
  • 2021-02-15 18:45

    Just adding a separate answer for those who may be dealing with it on a managed build environment like Azure Devops based on https://github.com/actions/virtual-environments/issues/2152#issuecomment-736325518

    Change the setting as follows

    sudo sed -i 's/ }/, \"max-concurrent-uploads\": 1 }/' /etc/docker/daemon.json
    sudo systemctl restart docker
    
    0 讨论(0)
提交回复
热议问题