Error "net/http: TLS handshake timeout"

Hi, can someone help?

errors from “pull” button in docker desktop:

(HTTP code 500) server error - failed to resolve reference "docker.io/ollama/ollama:latest": failed to do request: Head "https://registry-1.docker.io/v2/ollama/ollama/manifests/latest": net/http: TLS handshake timeout

errors from CLI

PS C:\Users\Aleksey\IdeaProjects\telegram-robot-client> docker pull langchain/langchain:0.1.0
Error response from daemon: failed to resolve reference "docker.io/langchain/langchain:0.1.0": failed to do request: Head "https://registry-1.docker.io/v2/langchain/langchain/manifests/0.1.0": net/http: TLS handshake timeout

I use windows + docker desktop


  Version:          0.19.0
  GitCommit:        de40ad0
PS C:\Users\Aleksey\IdeaProjects\telegram-robot-client> docker version
Client:
 Version:           28.1.1
 API version:       1.49
 Go version:        go1.23.8
 Git commit:        4eba377
 Built:             Fri Apr 18 09:53:24 2025
 OS/Arch:           windows/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.41.2 (191736)
 Engine:
  Version:          28.1.1
  API version:      1.49 (minimum version 1.24)
  Go version:       go1.23.8
  Git commit:       01f442b
  Built:            Fri Apr 18 09:52:57 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.27
  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da
 runc:
  Version:          1.2.5
  GitCommit:        v1.2.5-0-g59923ef
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Any corporate proxy in the way?

Everything seems to be working.

adding mirrors to my daemon.json helped me

before

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false
}

after:

{
  "builder": {
    "gc": {
      "defaultKeepStorage": "20GB",
      "enabled": true
    }
  },
  "experimental": false,
  "mtu": 1400,
  "registry-mirrors": [
    "https://mirror.gcr.io",
    "https://dockerhub.timeweb.cloud",
    "https://daocloud.io",
    "https://c.163.com",
    "https://registry.docker-cn.com",
    "https://dh-mirror.gitverse.ru",
    "https://mcr.t1.cloud"
  ]
}

It’s not a technical problem. It’s the effect of enforced government restrictions.

See section #16 Export Restrictions: https://www.docker.com/legal/docker-subscription-service-agreement/

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.