Docker pull issues TLS handshake timeout

#Introduction

Today, I have installed Docker on Vagrant Environment. Docker pull issues TLS handshake timeout as code follows

[vagrant@localhost ~]$ sudo docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
35807b77a593: Extracting [==========================================>        ]  24.18MB/28.57MB
error pulling image configuration: Get "https://registry-1.docker.io/v2/library/ubuntu/blobs/sha256:fb52e22af1b01869e23e75089c368a1130fa538946d0411d47f964f8b1076180": net/http: TLS handshake timeout

My Lab

  • Host: Windows 10
  • Vagrant box Ubuntu
  • Docker installed on Vagrant VM
Docker pull issues TLS handshake timeout

How do fixed it

I just reloaded the daemon and restarted the docker service. It solved this issue. You can use the below commands.

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
$ sudo systemctl status docker

Open Network Connections on Windows 10

Set DNS google for VirtualBox Host-Only Network

  • DNS1: 8.8.8.8
  • DNS2: 8.8.4.4
Docker pull issues TLS handshake timeout

Turn IPv6 off

Docker pull issues TLS handshake timeout

The result, Docker pull ubuntu

[vagrant@localhost ~]$ sudo docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
35807b77a593: Already exists
Digest: sha256:9d6a8699fb5c9c39cf08a0871bd6219f0400981c570894cd8cbea30d3424a31f
Status: Downloaded newer image for ubuntu:latest
docker.io/library/ubuntu:latest
[vagrant@localhost ~]$

Conclusion

You have fixed Error Pulling Image Configuration: Get Https://Xxxx : Net/Http: TLS Handshake Timeout. I hope will this your helpful. Thank you for reading the DevopsRoles page!

,

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published.

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.