Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout in Docker

I went through this link: Docker push - net/http: TLS handshake timeout, but it did not solved my issue. I am simply running the https://github.com/sqshq/PiggyMetrics using the docker-compose up command.

Status: Downloaded newer image for sqshq/piggymetrics-mongodb:latest
Pulling rabbitmq (rabbitmq:3-management)...
ERROR: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout
[root@ech-10-1XXX PiggyMetrics]#
[root@ech-10-1XXX PiggyMetrics]# docker-compose up
Pulling rabbitmq (rabbitmq:3-management)...
ERROR: Get https://registry-1.docker.io/v2/library/rabbitmq/manifests/3-management: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Frabbitmq%3Apull&service=registry.docker.io: net/http: TLS handshake timeout

Deployed and run the code on

uname -a

Linux ech-10-XXXX 4.1.12-61.1.18.el7uek.x86_64 #2 SMP Fri Nov 4 15:48:30 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux

like image 372
Jeff Cook Avatar asked Sep 10 '18 07:09

Jeff Cook


People also ask

How do I fix TLS handshake timeout?

The quickest solution to resolve this SSL/TLS handshake error is to restore your browser's original settings and disable all plugins. From there, you can customize the browser as needed, checking your connection with the website in question as you go.

What is https Registry 1 Docker io?

"https://registry-1.docker.io"] # ... As for where registry-1.docker.io comes from, it's the DNS name for the Docker Hub registry, which is the default when you do not specify a registry in your image name.

Is Docker a HTTP registry?

The Docker Registry HTTP API is the protocol to facilitate distribution of images to the docker engine. It interacts with instances of the docker registry, which is a service to manage information about docker images and enable their distribution.


2 Answers

I was facing the same error Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout because of slow internet connection.

Switching to a comparatively faster internet connection didn't fix my problem at first. Then I restarted docker and it worked.

$ sudo systemctl restart docker
like image 79
Kamol Hasan Avatar answered Sep 21 '22 07:09

Kamol Hasan


Try switching your internet connection. If you are connected via WiFi try connecting with LAN.

like image 43
Girish Sharma Avatar answered Sep 19 '22 07:09

Girish Sharma