• [gentoo-user] Docker installation issues

    From Mansour Al Akeel@21:1/5 to All on Sat Dec 10 18:40:02 2022
    I am using Openrc

    This was my initial /etc/conf.d/docker
    DOCKER_OPTS="--storage-driver overlay2 --data-root /srv/var/lib/docker"

    when I try:

    $ docker pull hello-world

    Error response from daemon: Get "https://registry-1.docker.io/v2/":
    net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

    Trying to troubleshoot:

    localhost /home/mansour # tail -n 20 /var/log/docker.log time="2022-12-10T12:17:03.473550705-05:00" level=info msg="scheme \"unix\"
    not registered, fallback to default scheme" module=grpc time="2022-12-10T12:17:03.473566413-05:00" level=info
    msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    time="2022-12-10T12:17:03.473573787-05:00" level=info msg="ClientConn
    switching balancer to \"pick_first\"" module=grpc time="2022-12-10T12:17:03.474530993-05:00" level=info msg="parsed scheme: \"unix\"" module=grpc
    time="2022-12-10T12:17:03.474545549-05:00" level=info msg="scheme \"unix\"
    not registered, fallback to default scheme" module=grpc time="2022-12-10T12:17:03.474563752-05:00" level=info
    msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    time="2022-12-10T12:17:03.474571186-05:00" level=info msg="ClientConn
    switching balancer to \"pick_first\"" module=grpc time="2022-12-10T12:17:03.478908716-05:00" level=warning msg="Your kernel
    does not support cgroup blkio weight" time="2022-12-10T12:17:03.478927115-05:00" level=warning msg="Your kernel
    does not support cgroup blkio weight_device" time="2022-12-10T12:17:03.479037897-05:00" level=info msg="Loading
    containers: start."
    time="2022-12-10T12:17:03.495743563-05:00" level=info msg="failed to read
    ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra time="2022-12-10T12:17:03.518761943-05:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip
    can be used to set a preferred IP address" time="2022-12-10T12:17:03.518886881-05:00" level=info msg="failed to read
    ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra time="2022-12-10T12:17:03.534616741-05:00" level=info msg="Loading
    containers: done."
    time="2022-12-10T12:17:03.541080189-05:00" level=info msg="Docker daemon" commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17 time="2022-12-10T12:17:03.541122352-05:00" level=info msg="Daemon has
    completed initialization"
    time="2022-12-10T12:17:03.549888103-05:00" level=info msg="API listen on /var/run/docker.sock"
    time="2022-12-10T12:17:27.025622231-05:00" level=warning msg="Error getting
    v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while
    awaiting headers)"
    time="2022-12-10T12:17:27.025667054-05:00" level=info msg="Attempting next endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
    time="2022-12-10T12:17:27.026851821-05:00" level=error msg="Handler for
    POST /v1.41/images/create returned error: Get \" https://registry-1.docker.io/v2/\": net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)"

    time="2022-12-10T12:15:42.036053086-05:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1 time="2022-12-10T12:15:42.036068412-05:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint:
    skip plugin"
    time="2022-12-10T12:15:42.036100189-05:00" level=info msg="loading plugin \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1 time="2022-12-10T12:15:42.036390695-05:00" level=info msg="Start cri plugin with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine:
    PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2
    Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0
    IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup: SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false DisableSnapshotAnnotations:true DiscardUnpackedLayers:false IgnoreRdtNotEnabledErrors:false}
    CniConfig:{NetworkPluginBinDir:/opt/cni/bin
    NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1 NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath:
    Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]} ImageDecryption:{KeyModel:node} DisableTCPService:true StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage: k8s.gcr.io/pause:3.6 StatsCollectPeriod:10 SystemdCgroup:false EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:false UnsetSeccompProfile: TolerateMissingHugetlbController:true DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false} ContainerdRootDir:/var/lib/containerd ContainerdEndpoint:/run/containerd/containerd.sock RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri StateDir:/run/containerd/io.containerd.grpc.v1.cri}" time="2022-12-10T12:15:42.036530498-05:00" level=info msg="Connect
    containerd service"
    time="2022-12-10T12:15:42.036627681-05:00" level=info msg="Get image
    filesystem path
    \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" time="2022-12-10T12:15:42.036896077-05:00" level=error msg="failed to load
    cni during init, please check CRI plugin status before setting up network
    for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config" time="2022-12-10T12:15:42.036986623-05:00" level=info msg="Start
    subscribing containerd event"
    time="2022-12-10T12:15:42.037028034-05:00" level=info msg="Start recovering state"
    time="2022-12-10T12:15:42.037035874-05:00" level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc time="2022-12-10T12:15:42.037068181-05:00" level=info msg=serving... address=/run/containerd/containerd.sock time="2022-12-10T12:15:42.037085346-05:00" level=info msg="containerd successfully booted in 0.015889s"
    time="2022-12-10T12:15:42.037072303-05:00" level=info msg="Start event
    monitor"
    time="2022-12-10T12:15:42.037107987-05:00" level=info msg="Start snapshots syncer"
    time="2022-12-10T12:15:42.037119126-05:00" level=info msg="Start cni
    network conf syncer for default"
    time="2022-12-10T12:15:42.037127266-05:00" level=info msg="Start streaming server"


    Looking at resolv.conf

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line

    So, I added the following to my /etc/dhcpcd.conf
    static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1

    And restarted dhcpcd:

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line


    docker.log still shows the same error: time="2022-12-10T12:28:16.519126445-05:00" level=warning msg="Error getting
    v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while
    awaiting headers)"
    time="2022-12-10T12:28:16.519173944-05:00" level=info msg="Attempting next endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
    time="2022-12-10T12:28:16.520489790-05:00" level=error msg="Handler for
    POST /v1.41/images/create returned error: Get \" https://registry-1.docker.io/v2/\": net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)"

    I am not able to login with "docker login"

    Where do I look further for additional troubleshooting hints? Google didn't help a lot.

    Thank you.

    <div dir="ltr"><div>I am using Openrc</div><div><br></div><div><div>This was my initial /etc/conf.d/docker</div><div>DOCKER_OPTS=&quot;--storage-driver overlay2 --data-root /srv/var/lib/docker&quot;</div><div><br></div></div><div>when I try:</div><div><
    </div><div>$ docker pull hello-world</div><div><br></div><div>Error response from daemon: Get &quot;<a href="https://registry-1.docker.io/v2/">https://registry-1.docker.io/v2/</a>&quot;: net/http: request canceled while waiting for connection (Client.
    Timeout exceeded while awaiting headers)</div><div><br></div><div>Trying to troubleshoot:</div><div><br></div><div>localhost /home/mansour # tail -n 20 /var/log/docker.log <br>time=&quot;2022-12-10T12:17:03.473550705-05:00&quot; level=info msg=&quot;
    scheme \&quot;unix\&quot; not registered, fallback to default scheme&quot; module=grpc<br>time=&quot;2022-12-10T12:17:03.473566413-05:00&quot; level=info msg=&quot;ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  &lt;
    nil&gt; 0 &lt;nil&gt;}] &lt;nil&gt; &lt;nil&gt;}&quot; module=grpc<br>time=&quot;2022-12-10T12:17:03.473573787-05:00&quot; level=info msg=&quot;ClientConn switching balancer to \&quot;pick_first\&quot;&quot; module=grpc<br>time=&quot;2022-12-10T12:17:03.
    474530993-05:00&quot; level=info msg=&quot;parsed scheme: \&quot;unix\&quot;&quot; module=grpc<br>time=&quot;2022-12-10T12:17:03.474545549-05:00&quot; level=info msg=&quot;scheme \&quot;unix\&quot; not registered, fallback to default scheme&quot; module=
    grpc<br>time=&quot;2022-12-10T12:17:03.474563752-05:00&quot; level=info msg=&quot;ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock  &lt;nil&gt; 0 &lt;nil&gt;}] &lt;nil&gt; &lt;nil&gt;}&quot; module=grpc<br>time=&quot;
    2022-12-10T12:17:03.474571186-05:00&quot; level=info msg=&quot;ClientConn switching balancer to \&quot;pick_first\&quot;&quot; module=grpc<br>time=&quot;2022-12-10T12:17:03.478908716-05:00&quot; level=warning msg=&quot;Your kernel does not support cgroup
    blkio weight&quot;<br>time=&quot;2022-12-10T12:17:03.478927115-05:00&quot; level=warning msg=&quot;Your kernel does not support cgroup blkio weight_device&quot;<br>time=&quot;2022-12-10T12:17:03.479037897-05:00&quot; level=info msg=&quot;Loading
    containers: start.&quot;<br>time=&quot;2022-12-10T12:17:03.495743563-05:00&quot; level=info msg=&quot;failed to read ipv6 net.ipv6.conf.&lt;bridge&gt;.accept_ra&quot; bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra<br>time=&quot;2022-12-
    10T12:17:03.518761943-05:00&quot; level=info msg=&quot;Default bridge (docker0) is assigned with an IP address <a href="http://172.17.0.0/16">172.17.0.0/16</a>. Daemon option --bip can be used to set a preferred IP address&quot;<br>time=&quot;2022-12-
    10T12:17:03.518886881-05:00&quot; level=info msg=&quot;failed to read ipv6 net.ipv6.conf.&lt;bridge&gt;.accept_ra&quot; bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra<br>time=&quot;2022-12-10T12:17:03.534616741-05:00&quot; level=info
    msg=&quot;Loading containers: done.&quot;<br>time=&quot;2022-12-10T12:17:03.541080189-05:00&quot; level=info msg=&quot;Docker daemon&quot; commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17<br>time=&quot;2022-12-10T12:17:03.541122352-05:00&quot;
    level=info msg=&quot;Daemon has completed initialization&quot;<br>time=&quot;2022-12-10T12:17:03.549888103-05:00&quot; level=info msg=&quot;API listen on /var/run/docker.sock&quot;<br>time=&quot;2022-12-10T12:17:27.025622231-05:00&quot; level=warning msg=
    &quot;Error getting v2 registry: Get \&quot;<a href="https://registry-1.docker.io/v2/\">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>time=&
    quot;2022-12-10T12:17:27.025667054-05:00&quot; level=info msg=&quot;Attempting next endpoint for pull after error: Get \&quot;<a href="https://registry-1.docker.io/v2/\">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>time=&quot;2022-12-10T12:17:27.026851821-05:00&quot; level=error msg=&quot;Handler for POST /v1.41/images/create returned error: Get \&quot;<a href="https://registry-1.
    docker.io/v2/\">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;</div><div><br></div><div>time=&quot;2022-12-10T12:15:42.036053086-05:00&quot;
    level=info msg=&quot;loading plugin \&quot;io.containerd.internal.v1.tracing\&quot;...&quot; type=io.containerd.internal.v1<br>time=&quot;2022-12-10T12:15:42.036068412-05:00&quot; level=error msg=&quot;failed to initialize a tracing processor \&quot;otlp\
    &quot;&quot; error=&quot;no OpenTelemetry endpoint: skip plugin&quot;<br>time=&quot;2022-12-10T12:15:42.036100189-05:00&quot; level=info msg=&quot;loading plugin \&quot;io.containerd.grpc.v1.cri\&quot;...&quot; type=io.containerd.grpc.v1<br>time=&quot;
    2022-12-10T12:15:42.036390695-05:00&quot; level=info msg=&quot;Start cri plugin with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root:
    Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:
    false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2 Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0
    IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup: SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false DisableSnapshotAnnotations:true DiscardUnpackedLayers:
    false IgnoreRdtNotEnabledErrors:false} CniConfig:{NetworkPluginBinDir:/opt/cni/bin NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1 NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath: Mirrors:map[] Configs:map[] Auths:map[]
    Headers:map[]} ImageDecryption:{KeyModel:node} DisableTCPService:true StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage:<a href="http://k8s.gcr.io/pause:3.6">k8s.gcr.io/
    pause:3.6</a> StatsCollectPeriod:10 SystemdCgroup:false EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false RestrictOOMScoreAdj:false MaxConcurrentDownloads:3
    DisableProcMount:false UnsetSeccompProfile: TolerateMissingHugetlbController:true DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false EnableUnprivilegedPorts:false
    EnableUnprivilegedICMP:false} ContainerdRootDir:/var/lib/containerd ContainerdEndpoint:/run/containerd/containerd.sock RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri StateDir:/run/containerd/io.containerd.grpc.v1.cri}&quot;<br>time=&quot;2022-12-
    10T12:15:42.036530498-05:00&quot; level=info msg=&quot;Connect containerd service&quot;<br>time=&quot;2022-12-10T12:15:42.036627681-05:00&quot; level=info msg=&quot;Get image filesystem path \&quot;/var/lib/containerd/io.containerd.snapshotter.v1.
    overlayfs\&quot;&quot;<br>time=&quot;2022-12-10T12:15:42.036896077-05:00&quot; level=error msg=&quot;failed to load cni during init, please check CRI plugin status before setting up network for pods&quot; error=&quot;cni config load failed: no network
    config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config&quot;<br>time=&quot;2022-12-10T12:15:42.036986623-05:00&quot; level=info msg=&quot;Start subscribing containerd event&quot;<br>time=&quot;2022-12-10T12:15:42.037028034-
    05:00&quot; level=info msg=&quot;Start recovering state&quot;<br>time=&quot;2022-12-10T12:15:42.037035874-05:00&quot; level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc<br>time=&quot;2022-12-10T12:15:42.037068181-05:00&quot; level=
    info msg=serving... address=/run/containerd/containerd.sock<br>time=&quot;2022-12-10T12:15:42.037085346-05:00&quot; level=info msg=&quot;containerd successfully booted in 0.015889s&quot;<br>time=&quot;2022-12-10T12:15:42.037072303-05:00&quot; level=info
    msg=&quot;Start event monitor&quot;<br>time=&quot;2022-12-10T12:15:42.037107987-05:00&quot; level=info msg=&quot;Start snapshots syncer&quot;<br>time=&quot;2022-12-10T12:15:42.037119126-05:00&quot; level=info msg=&quot;Start cni network conf syncer for
    default&quot;<br>time=&quot;2022-12-10T12:15:42.037127266-05:00&quot; level=info msg=&quot;Start streaming server&quot;</div><div><br></div><div><br></div><div>Looking at resolv.conf<br></div><div></div><div><br></div><div>localhost /home/mansour # cat /
    etc/resolv.conf <br># Generated by dhcpcd from wlp3s0.dhcp<br># /etc/resolv.conf.head can replace this line<br>domain Home<br>nameserver 192.168.1.1<br># /etc/resolv.conf.tail can replace this line</div><div><br></div><div><div>So, I added the following
    to my /etc/dhcpcd.conf</div></div><div>static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1</div><div><br></div><div>And restarted dhcpcd:</div><div><br></div><div>localhost /home/mansour # cat /etc/resolv.conf <br># Generated by dhcpcd from wlp3s0.
    dhcp<br># /etc/resolv.conf.head can replace this line<br>domain Home<br>nameserver 8.8.8.8<br>nameserver 8.8.4.4<br>nameserver 192.168.1.1<br># /etc/resolv.conf.tail can replace this line</div><div><br></div><div><br></div><div>docker.log still shows the
    same error: <br></div><div>time=&quot;2022-12-10T12:28:16.519126445-05:00&quot; level=warning msg=&quot;Error getting v2 registry: Get \&quot;<a href="https://registry-1.docker.io/v2/\">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request
    canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>time=&quot;2022-12-10T12:28:16.519173944-05:00&quot; level=info msg=&quot;Attempting next endpoint for pull after error: Get \&quot;<a href="https://registry-
    1.docker.io/v2/\">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>time=&quot;2022-12-10T12:28:16.520489790-05:00&quot; level=error msg=&quot;
    Handler for POST /v1.41/images/create returned error: Get \&quot;<a href="https://registry-1.docker.io/v2/\">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting
    headers)&quot;</div><div><br></div><div>I am not able to login with &quot;docker login&quot; <br></div><div><br></div><div>Where do I look further for additional troubleshooting hints? Google didn&#39;t help a lot. <br></div><div><br></div><div>Thank you.
    </div><div><br></div><div> <br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Fink@21:1/5 to Mansour Al Akeel on Sat Dec 10 19:40:01 2022
    On Sat, 10 Dec 2022 12:30:40 -0500
    Mansour Al Akeel <[email protected]> wrote:

    I am using Openrc

    This was my initial /etc/conf.d/docker
    DOCKER_OPTS="--storage-driver overlay2 --data-root /srv/var/lib/docker"

    when I try:

    $ docker pull hello-world

    Error response from daemon: Get "https://registry-1.docker.io/v2/":
    net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

    Trying to troubleshoot:

    localhost /home/mansour # tail -n 20 /var/log/docker.log time="2022-12-10T12:17:03.473550705-05:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2022-12-10T12:17:03.473566413-05:00" level=info
    msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    time="2022-12-10T12:17:03.473573787-05:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2022-12-10T12:17:03.474530993-05:00" level=info msg="parsed scheme: \"unix\"" module=grpc
    time="2022-12-10T12:17:03.474545549-05:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2022-12-10T12:17:03.474563752-05:00" level=info
    msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    time="2022-12-10T12:17:03.474571186-05:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2022-12-10T12:17:03.478908716-05:00" level=warning msg="Your kernel does not support cgroup blkio weight" time="2022-12-10T12:17:03.478927115-05:00" level=warning msg="Your kernel does not support cgroup blkio weight_device" time="2022-12-10T12:17:03.479037897-05:00" level=info msg="Loading containers: start."
    time="2022-12-10T12:17:03.495743563-05:00" level=info msg="failed to read ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra time="2022-12-10T12:17:03.518761943-05:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address" time="2022-12-10T12:17:03.518886881-05:00" level=info msg="failed to read ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra time="2022-12-10T12:17:03.534616741-05:00" level=info msg="Loading containers: done."
    time="2022-12-10T12:17:03.541080189-05:00" level=info msg="Docker daemon" commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17 time="2022-12-10T12:17:03.541122352-05:00" level=info msg="Daemon has completed initialization"
    time="2022-12-10T12:17:03.549888103-05:00" level=info msg="API listen on /var/run/docker.sock"
    time="2022-12-10T12:17:27.025622231-05:00" level=warning msg="Error getting v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while
    awaiting headers)"
    time="2022-12-10T12:17:27.025667054-05:00" level=info msg="Attempting next endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
    time="2022-12-10T12:17:27.026851821-05:00" level=error msg="Handler for
    POST /v1.41/images/create returned error: Get \" https://registry-1.docker.io/v2/\": net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)"

    time="2022-12-10T12:15:42.036053086-05:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1 time="2022-12-10T12:15:42.036068412-05:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
    time="2022-12-10T12:15:42.036100189-05:00" level=info msg="loading plugin \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1 time="2022-12-10T12:15:42.036390695-05:00" level=info msg="Start cri plugin with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine:
    PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2 Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0 IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup: SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false DisableSnapshotAnnotations:true DiscardUnpackedLayers:false IgnoreRdtNotEnabledErrors:false}
    CniConfig:{NetworkPluginBinDir:/opt/cni/bin NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1 NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath:
    Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]} ImageDecryption:{KeyModel:node} DisableTCPService:true StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage: k8s.gcr.io/pause:3.6 StatsCollectPeriod:10 SystemdCgroup:false EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:false UnsetSeccompProfile: TolerateMissingHugetlbController:true DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false} ContainerdRootDir:/var/lib/containerd ContainerdEndpoint:/run/containerd/containerd.sock RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri StateDir:/run/containerd/io.containerd.grpc.v1.cri}" time="2022-12-10T12:15:42.036530498-05:00" level=info msg="Connect
    containerd service"
    time="2022-12-10T12:15:42.036627681-05:00" level=info msg="Get image filesystem path \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" time="2022-12-10T12:15:42.036896077-05:00" level=error msg="failed to load cni during init, please check CRI plugin status before setting up network
    for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config" time="2022-12-10T12:15:42.036986623-05:00" level=info msg="Start
    subscribing containerd event"
    time="2022-12-10T12:15:42.037028034-05:00" level=info msg="Start recovering state"
    time="2022-12-10T12:15:42.037035874-05:00" level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc time="2022-12-10T12:15:42.037068181-05:00" level=info msg=serving... address=/run/containerd/containerd.sock time="2022-12-10T12:15:42.037085346-05:00" level=info msg="containerd successfully booted in 0.015889s"
    time="2022-12-10T12:15:42.037072303-05:00" level=info msg="Start event monitor"
    time="2022-12-10T12:15:42.037107987-05:00" level=info msg="Start snapshots syncer"
    time="2022-12-10T12:15:42.037119126-05:00" level=info msg="Start cni
    network conf syncer for default"
    time="2022-12-10T12:15:42.037127266-05:00" level=info msg="Start streaming server"


    Looking at resolv.conf

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line

    So, I added the following to my /etc/dhcpcd.conf
    static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1

    And restarted dhcpcd:

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line


    docker.log still shows the same error: time="2022-12-10T12:28:16.519126445-05:00" level=warning msg="Error getting v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while
    awaiting headers)"
    time="2022-12-10T12:28:16.519173944-05:00" level=info msg="Attempting next endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
    time="2022-12-10T12:28:16.520489790-05:00" level=error msg="Handler for
    POST /v1.41/images/create returned error: Get \" https://registry-1.docker.io/v2/\": net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)"

    I am not able to login with "docker login"

    Where do I look further for additional troubleshooting hints? Google didn't help a lot.

    Thank you.


    Hello,
    my first step would be checking if there is some inherent network
    problem reaching registry-1.docker.io/v2, e.g. via
    curl -v https://registry-1.docker.io/v2/

    If that runs successfully, you could try if there is an MTU problem. I
    remember that I had to set MTU to 1450 in some virtualized environment, otherwise docker would not run correctly, i.e. I had in
    /etc/conf.d/docer
    DOCKER_OPTS="--mtu=1450"

    Hope that gives you an idea what to look for.

    If both does not help, there is wireshark, to watch your network, very low-level, but might give some hints.

    Cheers
    Andreas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mansour Al Akeel@21:1/5 to [email protected] on Sat Dec 10 22:00:02 2022
    Andreas,

    Thank you very much. In fact I didn't go that deep yet, and not sure if I should. I just found that the url is not accessible even from a browser. Googling a bit, tells me there is no clear URL for docker-registry and
    possibly this one is outdated. I will continue looking around to confirm
    what the current default repo should be. If you have any suggestions,
    please let me know.


    localhost in ~
    ○ → curl -k -v https://registry-1.docker.io/v2/
    * Trying 34.228.211.243:443...

    * connect to 34.228.211.243 port 443 failed: Connection timed out
    * Failed to connect to registry-1.docker.io port 443 after 129401 ms:
    Couldn't connect to server
    * Closing connection 0
    curl: (28) Failed to connect to registry-1.docker.io port 443 after 129401
    ms: Couldn't connect to server





    On Sat, Dec 10, 2022 at 1:32 PM Andreas Fink <[email protected]> wrote:

    On Sat, 10 Dec 2022 12:30:40 -0500
    Mansour Al Akeel <[email protected]> wrote:

    I am using Openrc

    This was my initial /etc/conf.d/docker
    DOCKER_OPTS="--storage-driver overlay2 --data-root /srv/var/lib/docker"

    when I try:

    $ docker pull hello-world

    Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

    Trying to troubleshoot:

    localhost /home/mansour # tail -n 20 /var/log/docker.log time="2022-12-10T12:17:03.473550705-05:00" level=info msg="scheme
    \"unix\"
    not registered, fallback to default scheme" module=grpc time="2022-12-10T12:17:03.473566413-05:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    time="2022-12-10T12:17:03.473573787-05:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2022-12-10T12:17:03.474530993-05:00" level=info msg="parsed scheme: \"unix\"" module=grpc
    time="2022-12-10T12:17:03.474545549-05:00" level=info msg="scheme
    \"unix\"
    not registered, fallback to default scheme" module=grpc time="2022-12-10T12:17:03.474563752-05:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc
    time="2022-12-10T12:17:03.474571186-05:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2022-12-10T12:17:03.478908716-05:00" level=warning msg="Your kernel does not support cgroup blkio weight" time="2022-12-10T12:17:03.478927115-05:00" level=warning msg="Your kernel does not support cgroup blkio weight_device" time="2022-12-10T12:17:03.479037897-05:00" level=info msg="Loading containers: start."
    time="2022-12-10T12:17:03.495743563-05:00" level=info msg="failed to read ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra time="2022-12-10T12:17:03.518761943-05:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option
    --bip
    can be used to set a preferred IP address" time="2022-12-10T12:17:03.518886881-05:00" level=info msg="failed to read ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0 syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra time="2022-12-10T12:17:03.534616741-05:00" level=info msg="Loading containers: done."
    time="2022-12-10T12:17:03.541080189-05:00" level=info msg="Docker daemon" commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17 time="2022-12-10T12:17:03.541122352-05:00" level=info msg="Daemon has completed initialization"
    time="2022-12-10T12:17:03.549888103-05:00" level=info msg="API listen on /var/run/docker.sock"
    time="2022-12-10T12:17:27.025622231-05:00" level=warning msg="Error
    getting
    v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
    time="2022-12-10T12:17:27.025667054-05:00" level=info msg="Attempting
    next
    endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" time="2022-12-10T12:17:27.026851821-05:00" level=error msg="Handler for POST /v1.41/images/create returned error: Get \" https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

    time="2022-12-10T12:15:42.036053086-05:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1 time="2022-12-10T12:15:42.036068412-05:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry
    endpoint:
    skip plugin"
    time="2022-12-10T12:15:42.036100189-05:00" level=info msg="loading plugin \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1 time="2022-12-10T12:15:42.036390695-05:00" level=info msg="Start cri
    plugin
    with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2 Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0 IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup: SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false DisableSnapshotAnnotations:true DiscardUnpackedLayers:false IgnoreRdtNotEnabledErrors:false} CniConfig:{NetworkPluginBinDir:/opt/cni/bin NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1 NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath: Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]} ImageDecryption:{KeyModel:node} DisableTCPService:true StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage: k8s.gcr.io/pause:3.6 StatsCollectPeriod:10 SystemdCgroup:false EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:false UnsetSeccompProfile: TolerateMissingHugetlbController:true DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false} ContainerdRootDir:/var/lib/containerd ContainerdEndpoint:/run/containerd/containerd.sock RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri StateDir:/run/containerd/io.containerd.grpc.v1.cri}" time="2022-12-10T12:15:42.036530498-05:00" level=info msg="Connect containerd service"
    time="2022-12-10T12:15:42.036627681-05:00" level=info msg="Get image filesystem path \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" time="2022-12-10T12:15:42.036896077-05:00" level=error msg="failed to
    load
    cni during init, please check CRI plugin status before setting up network for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config" time="2022-12-10T12:15:42.036986623-05:00" level=info msg="Start subscribing containerd event"
    time="2022-12-10T12:15:42.037028034-05:00" level=info msg="Start
    recovering
    state"
    time="2022-12-10T12:15:42.037035874-05:00" level=info msg=serving... address=/run/containerd/containerd.sock.ttrpc time="2022-12-10T12:15:42.037068181-05:00" level=info msg=serving... address=/run/containerd/containerd.sock time="2022-12-10T12:15:42.037085346-05:00" level=info msg="containerd successfully booted in 0.015889s" time="2022-12-10T12:15:42.037072303-05:00" level=info msg="Start event monitor"
    time="2022-12-10T12:15:42.037107987-05:00" level=info msg="Start
    snapshots
    syncer"
    time="2022-12-10T12:15:42.037119126-05:00" level=info msg="Start cni network conf syncer for default"
    time="2022-12-10T12:15:42.037127266-05:00" level=info msg="Start
    streaming
    server"


    Looking at resolv.conf

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line

    So, I added the following to my /etc/dhcpcd.conf
    static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1

    And restarted dhcpcd:

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line


    docker.log still shows the same error: time="2022-12-10T12:28:16.519126445-05:00" level=warning msg="Error
    getting
    v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
    time="2022-12-10T12:28:16.519173944-05:00" level=info msg="Attempting
    next
    endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)" time="2022-12-10T12:28:16.520489790-05:00" level=error msg="Handler for POST /v1.41/images/create returned error: Get \" https://registry-1.docker.io/v2/\": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"

    I am not able to login with "docker login"

    Where do I look further for additional troubleshooting hints? Google
    didn't
    help a lot.

    Thank you.


    Hello,
    my first step would be checking if there is some inherent network
    problem reaching registry-1.docker.io/v2, e.g. via
    curl -v https://registry-1.docker.io/v2/

    If that runs successfully, you could try if there is an MTU problem. I remember that I had to set MTU to 1450 in some virtualized environment, otherwise docker would not run correctly, i.e. I had in
    /etc/conf.d/docer
    DOCKER_OPTS="--mtu=1450"

    Hope that gives you an idea what to look for.

    If both does not help, there is wireshark, to watch your network, very low-level, but might give some hints.

    Cheers
    Andreas



    <div dir="ltr"><div>Andreas,</div><div><br></div><div>Thank you very much. In fact I didn&#39;t go that deep yet, and not sure if I should. I just found that the url is not accessible even from a browser. Googling a bit, tells me there is no clear URL
    for docker-registry and possibly this one is outdated. I will continue looking around to confirm what the current default repo should be. If you have any suggestions, please let me know. <br></div><div><br></div><div><br></div><div> localhost in ~<br>○
    → curl -k -v <a href="https://registry-1.docker.io/v2/">https://registry-1.docker.io/v2/</a><br>*   Trying 34.228.211.243:443...<br><br>* connect to 34.228.211.243 port 443 failed: Connection timed out<br>* Failed to connect to <a href="http://
    registry-1.docker.io">registry-1.docker.io</a> port 443 after 129401 ms: Couldn&#39;t connect to server<br>* Closing connection 0<br>curl: (28) Failed to connect to <a href="http://registry-1.docker.io">registry-1.docker.io</a> port 443 after 129401 ms:
    Couldn&#39;t connect to server<br><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 10, 2022 at 1:32 PM Andreas Fink &lt;<a href="mailto:[email protected]">finkandreas@
    web.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 10 Dec 2022 12:30:40 -0500<br>
    Mansour Al Akeel &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt; wrote:<br>

    &gt; I am using Openrc<br>
    &gt;<br>
    &gt; This was my initial /etc/conf.d/docker<br>
    &gt; DOCKER_OPTS=&quot;--storage-driver overlay2 --data-root /srv/var/lib/docker&quot;<br>
    &gt;<br>
    &gt; when I try:<br>
    &gt;<br>
    &gt; $ docker pull hello-world<br>
    &gt;<br>
    &gt; Error response from daemon: Get &quot;<a href="https://registry-1.docker.io/v2/" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/</a>&quot;:<br>
    &gt; net/http: request canceled while waiting for connection (Client.Timeout<br>
    &gt; exceeded while awaiting headers)<br>
    &gt;<br>
    &gt; Trying to troubleshoot:<br>
    &gt;<br>
    &gt; localhost /home/mansour # tail -n 20 /var/log/docker.log<br>
    &gt; time=&quot;2022-12-10T12:17:03.473550705-05:00&quot; level=info msg=&quot;scheme \&quot;unix\&quot;<br>
    &gt; not registered, fallback to default scheme&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.473566413-05:00&quot; level=info<br>
    &gt; msg=&quot;ccResolverWrapper: sending update to cc:<br>
    &gt; {[{unix:///run/containerd/containerd.sock  &lt;nil&gt; 0 &lt;nil&gt;}] &lt;nil&gt; &lt;nil&gt;}&quot;<br>
    &gt; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.473573787-05:00&quot; level=info msg=&quot;ClientConn<br>
    &gt; switching balancer to \&quot;pick_first\&quot;&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474530993-05:00&quot; level=info msg=&quot;parsed scheme:<br>
    &gt; \&quot;unix\&quot;&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474545549-05:00&quot; level=info msg=&quot;scheme \&quot;unix\&quot;<br>
    &gt; not registered, fallback to default scheme&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474563752-05:00&quot; level=info<br>
    &gt; msg=&quot;ccResolverWrapper: sending update to cc:<br>
    &gt; {[{unix:///run/containerd/containerd.sock  &lt;nil&gt; 0 &lt;nil&gt;}] &lt;nil&gt; &lt;nil&gt;}&quot;<br>
    &gt; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474571186-05:00&quot; level=info msg=&quot;ClientConn<br>
    &gt; switching balancer to \&quot;pick_first\&quot;&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.478908716-05:00&quot; level=warning msg=&quot;Your kernel<br>
    &gt; does not support cgroup blkio weight&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.478927115-05:00&quot; level=warning msg=&quot;Your kernel<br>
    &gt; does not support cgroup blkio weight_device&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.479037897-05:00&quot; level=info msg=&quot;Loading<br>
    &gt; containers: start.&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.495743563-05:00&quot; level=info msg=&quot;failed to read<br>
    &gt; ipv6 net.ipv6.conf.&lt;bridge&gt;.accept_ra&quot; bridge=docker0<br>
    &gt; syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra<br>
    &gt; time=&quot;2022-12-10T12:17:03.518761943-05:00&quot; level=info msg=&quot;Default bridge<br>
    &gt; (docker0) is assigned with an IP address <a href="http://172.17.0.0/16" rel="noreferrer" target="_blank">172.17.0.0/16</a>. Daemon option --bip<br>
    &gt; can be used to set a preferred IP address&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.518886881-05:00&quot; level=info msg=&quot;failed to read<br>
    &gt; ipv6 net.ipv6.conf.&lt;bridge&gt;.accept_ra&quot; bridge=docker0<br>
    &gt; syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra<br>
    &gt; time=&quot;2022-12-10T12:17:03.534616741-05:00&quot; level=info msg=&quot;Loading<br>
    &gt; containers: done.&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.541080189-05:00&quot; level=info msg=&quot;Docker daemon&quot;<br>
    &gt; commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17<br>
    &gt; time=&quot;2022-12-10T12:17:03.541122352-05:00&quot; level=info msg=&quot;Daemon has<br>
    &gt; completed initialization&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.549888103-05:00&quot; level=info msg=&quot;API listen on<br>
    &gt; /var/run/docker.sock&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:27.025622231-05:00&quot; level=warning msg=&quot;Error getting<br>
    &gt; v2 registry: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request<br>
    &gt; canceled while waiting for connection (Client.Timeout exceeded while<br> &gt; awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:27.025667054-05:00&quot; level=info msg=&quot;Attempting next<br>
    &gt; endpoint for pull after error: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;:<br>
    &gt; net/http: request canceled while waiting for connection (Client.Timeout<br>
    &gt; exceeded while awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:27.026851821-05:00&quot; level=error msg=&quot;Handler for<br>
    &gt; POST /v1.41/images/create returned error: Get \&quot;<br>
    &gt; <a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while<br>
    &gt; waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>
    &gt;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036053086-05:00&quot; level=info msg=&quot;loading plugin<br>
    &gt; \&quot;io.containerd.internal.v1.tracing\&quot;...&quot; type=io.containerd.internal.v1<br>
    &gt; time=&quot;2022-12-10T12:15:42.036068412-05:00&quot; level=error msg=&quot;failed to<br>
    &gt; initialize a tracing processor \&quot;otlp\&quot;&quot; error=&quot;no OpenTelemetry endpoint:<br>
    &gt; skip plugin&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036100189-05:00&quot; level=info msg=&quot;loading plugin<br>
    &gt; \&quot;io.containerd.grpc.v1.cri\&quot;...&quot; type=io.containerd.grpc.v1<br>
    &gt; time=&quot;2022-12-10T12:15:42.036390695-05:00&quot; level=info msg=&quot;Start cri plugin<br>
    &gt; with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs<br> &gt; DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine:<br>
    &gt; PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]<br>
    &gt; PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir:<br>
    &gt; NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine:<br>
    &gt; PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]<br>
    &gt; PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir:<br>
    &gt; NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2<br>
    &gt; Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root:<br>
    &gt; Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0<br> &gt; IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup:<br>
    &gt; SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec:<br>
    &gt; NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false<br>
    &gt; DisableSnapshotAnnotations:true DiscardUnpackedLayers:false<br>
    &gt; IgnoreRdtNotEnabledErrors:false}<br>
    &gt; CniConfig:{NetworkPluginBinDir:/opt/cni/bin<br>
    &gt; NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1<br>
    &gt; NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath:<br>
    &gt; Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]}<br>
    &gt; ImageDecryption:{KeyModel:node} DisableTCPService:true<br>
    &gt; StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s<br>
    &gt; EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage:<br>
    &gt; <a href="http://k8s.gcr.io/pause:3.6" rel="noreferrer" target="_blank">k8s.gcr.io/pause:3.6</a> StatsCollectPeriod:10 SystemdCgroup:false<br>
    &gt; EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:}<br>
    &gt; MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false<br>
    &gt; RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:false<br>
    &gt; UnsetSeccompProfile: TolerateMissingHugetlbController:true<br>
    &gt; DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false<br> &gt; IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false<br>
    &gt; EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false}<br>
    &gt; ContainerdRootDir:/var/lib/containerd<br>
    &gt; ContainerdEndpoint:/run/containerd/containerd.sock<br>
    &gt; RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri<br>
    &gt; StateDir:/run/containerd/io.containerd.grpc.v1.cri}&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036530498-05:00&quot; level=info msg=&quot;Connect<br>
    &gt; containerd service&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036627681-05:00&quot; level=info msg=&quot;Get image<br>
    &gt; filesystem path<br>
    &gt; \&quot;/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\&quot;&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036896077-05:00&quot; level=error msg=&quot;failed to load<br>
    &gt; cni during init, please check CRI plugin status before setting up network<br>
    &gt; for pods&quot; error=&quot;cni config load failed: no network config found in<br>
    &gt; /etc/cni/net.d: cni plugin not initialized: failed to load cni config&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036986623-05:00&quot; level=info msg=&quot;Start<br>
    &gt; subscribing containerd event&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037028034-05:00&quot; level=info msg=&quot;Start recovering<br>
    &gt; state&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037035874-05:00&quot; level=info msg=serving...<br>
    &gt; address=/run/containerd/containerd.sock.ttrpc<br>
    &gt; time=&quot;2022-12-10T12:15:42.037068181-05:00&quot; level=info msg=serving...<br>
    &gt; address=/run/containerd/containerd.sock<br>
    &gt; time=&quot;2022-12-10T12:15:42.037085346-05:00&quot; level=info msg=&quot;containerd<br>
    &gt; successfully booted in 0.015889s&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037072303-05:00&quot; level=info msg=&quot;Start event<br>
    &gt; monitor&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037107987-05:00&quot; level=info msg=&quot;Start snapshots<br>
    &gt; syncer&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037119126-05:00&quot; level=info msg=&quot;Start cni<br>
    &gt; network conf syncer for default&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037127266-05:00&quot; level=info msg=&quot;Start streaming<br>
    &gt; server&quot;<br>
    &gt;<br>
    &gt;<br>
    &gt; Looking at resolv.conf<br>
    &gt;<br>
    &gt; localhost /home/mansour # cat /etc/resolv.conf<br>
    &gt; # Generated by dhcpcd from wlp3s0.dhcp<br>
    &gt; # /etc/resolv.conf.head can replace this line<br>
    &gt; domain Home<br>
    &gt; nameserver 192.168.1.1<br>
    &gt; # /etc/resolv.conf.tail can replace this line<br>
    &gt;<br>
    &gt; So, I added the following to my /etc/dhcpcd.conf<br>
    &gt; static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1<br>
    &gt;<br>
    &gt; And restarted dhcpcd:<br>
    &gt;<br>
    &gt; localhost /home/mansour # cat /etc/resolv.conf<br>
    &gt; # Generated by dhcpcd from wlp3s0.dhcp<br>
    &gt; # /etc/resolv.conf.head can replace this line<br>
    &gt; domain Home<br>
    &gt; nameserver 8.8.8.8<br>
    &gt; nameserver 8.8.4.4<br>
    &gt; nameserver 192.168.1.1<br>
    &gt; # /etc/resolv.conf.tail can replace this line<br>
    &gt;<br>
    &gt;<br>
    &gt; docker.log still shows the same error:<br>
    &gt; time=&quot;2022-12-10T12:28:16.519126445-05:00&quot; level=warning msg=&quot;Error getting<br>
    &gt; v2 registry: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request<br>
    &gt; canceled while waiting for connection (Client.Timeout exceeded while<br> &gt; awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:28:16.519173944-05:00&quot; level=info msg=&quot;Attempting next<br>
    &gt; endpoint for pull after error: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;:<br>
    &gt; net/http: request canceled while waiting for connection (Client.Timeout<br>
    &gt; exceeded while awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:28:16.520489790-05:00&quot; level=error msg=&quot;Handler for<br>
    &gt; POST /v1.41/images/create returned error: Get \&quot;<br>
    &gt; <a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while<br>
    &gt; waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>
    &gt;<br>
    &gt; I am not able to login with &quot;docker login&quot;<br>
    &gt;<br>
    &gt; Where do I look further for additional troubleshooting hints? Google didn&#39;t<br>
    &gt; help a lot.<br>
    &gt;<br>
    &gt; Thank you.<br>


    Hello,<br>
    my first step would be checking if there is some inherent network<br>
    problem reaching <a href="http://registry-1.docker.io/v2" rel="noreferrer" target="_blank">registry-1.docker.io/v2</a>, e.g. via<br>
    curl -v <a href="https://registry-1.docker.io/v2/" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/</a><br>

    If that runs successfully, you could try if there is an MTU problem. I<br> remember that I had to set MTU to 1450 in some virtualized environment,<br> otherwise docker would not run correctly, i.e. I  had in<br> /etc/conf.d/docer<br>
    DOCKER_OPTS=&quot;--mtu=1450&quot;<br>

    Hope that gives you an idea what to look for.<br>

    If both does not help, there is wireshark, to watch your network, very<br> low-level, but might give some hints.<br>

    Cheers<br>
    Andreas<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Fink@21:1/5 to Mansour Al Akeel on Sun Dec 11 07:00:01 2022
    On Sat, 10 Dec 2022 15:51:17 -0500
    Mansour Al Akeel <[email protected]> wrote:

    Andreas,

    Thank you very much. In fact I didn't go that deep yet, and not sure if I should. I just found that the url is not accessible even from a browser. Googling a bit, tells me there is no clear URL for docker-registry and possibly this one is outdated. I will continue looking around to confirm
    what the current default repo should be. If you have any suggestions,
    please let me know.


    localhost in ~
    ○ → curl -k -v https://registry-1.docker.io/v2/
    * Trying 34.228.211.243:443...

    * connect to 34.228.211.243 port 443 failed: Connection timed out
    * Failed to connect to registry-1.docker.io port 443 after 129401 ms: Couldn't connect to server
    * Closing connection 0
    curl: (28) Failed to connect to registry-1.docker.io port 443 after 129401 ms: Couldn't connect to server


    You have a a strange DNS resolution. The IP address 34.227.211.243
    seems wrong. Here is what I see when I look at the DNS records: andreas@localhost ~$ dig registry-1.docker.io

    ; <<>> DiG 9.16.33 <<>> registry-1.docker.io
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11419
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;registry-1.docker.io. IN A

    ;; ANSWER SECTION:
    registry-1.docker.io. 13 IN A 34.205.13.154 registry-1.docker.io. 13 IN A 44.205.64.79 registry-1.docker.io. 13 IN A 3.216.34.172

    ;; Query time: 10 msec
    ;; SERVER: 79.143.183.251#53(79.143.183.251)
    ;; WHEN: Sun Dec 11 06:56:50 CET 2022
    ;; MSG SIZE rcvd: 97

    I am not sure
    Not sure where you get the wrong IP from, but it is a DNS issue.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mansour Al Akeel@21:1/5 to [email protected] on Sun Dec 11 17:20:01 2022
    This is what I have on my machine. I can see the ANSWER SECTION in reversed order

    localhost ~ # dig registry-1.docker.io

    ; <<>> DiG 9.16.33 <<>> registry-1.docker.io
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10324
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;registry-1.docker.io. IN A

    ;; ANSWER SECTION:
    registry-1.docker.io. 51 IN A 3.216.34.172
    registry-1.docker.io. 51 IN A 44.205.64.79
    registry-1.docker.io. 51 IN A 34.205.13.154

    ;; AUTHORITY SECTION:
    docker.io. 171984 IN NS ns-1168.awsdns-18.org.
    docker.io. 171984 IN NS ns-1827.awsdns-36.co.uk.
    docker.io. 171984 IN NS ns-421.awsdns-52.com.
    docker.io. 171984 IN NS ns-513.awsdns-00.net.

    ;; Query time: 15 msec
    ;; SERVER: 192.168.1.1#53(192.168.1.1)
    ;; WHEN: Sun Dec 11 11:06:33 EST 2022
    ;; MSG SIZE rcvd: 237



    On Sun, Dec 11, 2022 at 12:59 AM Andreas Fink <[email protected]> wrote:

    On Sat, 10 Dec 2022 15:51:17 -0500
    Mansour Al Akeel <[email protected]> wrote:

    Andreas,

    Thank you very much. In fact I didn't go that deep yet, and not sure if I should. I just found that the url is not accessible even from a browser. Googling a bit, tells me there is no clear URL for docker-registry and possibly this one is outdated. I will continue looking around to confirm what the current default repo should be. If you have any suggestions, please let me know.


    localhost in ~
    ○ → curl -k -v https://registry-1.docker.io/v2/
    * Trying 34.228.211.243:443...

    * connect to 34.228.211.243 port 443 failed: Connection timed out
    * Failed to connect to registry-1.docker.io port 443 after 129401 ms: Couldn't connect to server
    * Closing connection 0
    curl: (28) Failed to connect to registry-1.docker.io port 443 after
    129401
    ms: Couldn't connect to server


    You have a a strange DNS resolution. The IP address 34.227.211.243
    seems wrong. Here is what I see when I look at the DNS records: andreas@localhost ~$ dig registry-1.docker.io

    ; <<>> DiG 9.16.33 <<>> registry-1.docker.io
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11419
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 4096
    ;; QUESTION SECTION:
    ;registry-1.docker.io. IN A

    ;; ANSWER SECTION:
    registry-1.docker.io. 13 IN A 34.205.13.154 registry-1.docker.io. 13 IN A 44.205.64.79 registry-1.docker.io. 13 IN A 3.216.34.172

    ;; Query time: 10 msec
    ;; SERVER: 79.143.183.251#53(79.143.183.251)
    ;; WHEN: Sun Dec 11 06:56:50 CET 2022
    ;; MSG SIZE rcvd: 97

    I am not sure
    Not sure where you get the wrong IP from, but it is a DNS issue.



    <div dir="ltr"><div>This is what I have on my machine. I can see the ANSWER SECTION in reversed order</div><div><br></div><div>localhost ~ # dig <a href="http://registry-1.docker.io">registry-1.docker.io</a><br><br>; &lt;&lt;&gt;&gt; DiG 9.16.33 &lt;&lt;&
    gt;&gt; <a href="http://registry-1.docker.io">registry-1.docker.io</a><br>;; global options: +cmd<br>;; Got answer:<br>;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 10324<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 4,
    ADDITIONAL: 1<br><br>;; OPT PSEUDOSECTION:<br>; EDNS: version: 0, flags:; udp: 4096<br>;; QUESTION SECTION:<br>;<a href="http://registry-1.docker.io">registry-1.docker.io</a>. IN A<br><br>;; ANSWER SECTION:<br><a href="http://registry-1.docker.io">
    registry-1.docker.io</a>. 51 IN A 3.216.34.172<br><a href="http://registry-1.docker.io">registry-1.docker.io</a>. 51 IN A 44.205.64.79<br><a href="http://registry-1.docker.io">registry-1.docker.io</a>. 51 IN A 34.205.13.154<br><br>;; AUTHORITY SECTION:<
    <a href="http://docker.io">docker.io</a>. 171984 IN NS <a href="http://ns-1168.awsdns-18.org">ns-1168.awsdns-18.org</a>.<br><a href="http://docker.io">docker.io</a>. 171984 IN NS <a href="http://ns-1827.awsdns-36.co.uk">ns-1827.awsdns-36.co.uk</a>.<
    <a href="http://docker.io">docker.io</a>. 171984 IN NS <a href="http://ns-421.awsdns-52.com">ns-421.awsdns-52.com</a>.<br><a href="http://docker.io">docker.io</a>. 171984 IN NS <a href="http://ns-513.awsdns-00.net">ns-513.awsdns-00.net</a>.<br><br>;;
    Query time: 15 msec<br>;; SERVER: 192.168.1.1#53(192.168.1.1)<br>;; WHEN: Sun Dec 11 11:06:33 EST 2022<br>;; MSG SIZE  rcvd: 237</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 11,
    2022 at 12:59 AM Andreas Fink &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 10 Dec 2022
    15:51:17 -0500<br>
    Mansour Al Akeel &lt;<a href="mailto:[email protected]" target="_blank">[email protected]</a>&gt; wrote:<br>

    &gt; Andreas,<br>
    &gt; <br>
    &gt; Thank you very much. In fact I didn&#39;t go that deep yet, and not sure if I<br>
    &gt; should. I just found that the url is not accessible even from a browser.<br>
    &gt; Googling a bit, tells me there is no clear URL for docker-registry and<br> &gt; possibly this one is outdated. I will continue looking around to confirm<br>
    &gt; what the current default repo should be. If you have any suggestions,<br> &gt; please let me know.<br>
    &gt; <br>
    &gt; <br>
    &gt;  localhost in ~<br>
    &gt; ○ → curl -k -v <a href="https://registry-1.docker.io/v2/" rel="noreferrer" target="_blank">https://registry-1.docker.io/v2/</a><br>
    &gt; *   Trying 34.228.211.243:443...<br>
    &gt; <br>
    &gt; * connect to 34.228.211.243 port 443 failed: Connection timed out<br>
    &gt; * Failed to connect to <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a> port 443 after 129401 ms:<br>
    &gt; Couldn&#39;t connect to server<br>
    &gt; * Closing connection 0<br>
    &gt; curl: (28) Failed to connect to <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a> port 443 after 129401<br>
    &gt; ms: Couldn&#39;t connect to server<br>


    You have a a strange DNS resolution. The IP address 34.227.211.243<br>
    seems wrong. Here is what I see when I look at the DNS records:<br> andreas@localhost ~$ dig <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a><br>

    ; &lt;&lt;&gt;&gt; DiG 9.16.33 &lt;&lt;&gt;&gt; <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a><br>
    ;; global options: +cmd<br>
    ;; Got answer:<br>
    ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 11419<br>
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1<br>

    ;; OPT PSEUDOSECTION:<br>
    ; EDNS: version: 0, flags:; udp: 4096<br>
    ;; QUESTION SECTION:<br>
    ;<a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a>.          IN      A<br>

    ;; ANSWER SECTION:<br>
    <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a>.   13      IN      A       34.205.13.154<br>
    <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a>.   13      IN      A       44.205.64.79<br>
    <a href="http://registry-1.docker.io" rel="noreferrer" target="_blank">registry-1.docker.io</a>.   13      IN      A       3.216.34.172<br>

    ;; Query time: 10 msec<br>
    ;; SERVER: 79.143.183.251#53(79.143.183.251)<br>
    ;; WHEN: Sun Dec 11 06:56:50 CET 2022<br>
    ;; MSG SIZE  rcvd: 97<br>

    I am not sure<br>
    Not sure where you get the wrong IP from, but it is a DNS issue.<br>

    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Rosenbaum@21:1/5 to All on Fri Dec 16 20:00:01 2022
    Thank u

    Dave

    On Sat, Dec 10, 2022, 3:51 PM Mansour Al Akeel <[email protected]> wrote:

    Andreas,

    Thank you very much. In fact I didn't go that deep yet, and not sure if I should. I just found that the url is not accessible even from a browser. Googling a bit, tells me there is no clear URL for docker-registry and possibly this one is outdated. I will continue looking around to confirm
    what the current default repo should be. If you have any suggestions,
    please let me know.


    localhost in ~
    ○ → curl -k -v https://registry-1.docker.io/v2/
    * Trying 34.228.211.243:443...

    * connect to 34.228.211.243 port 443 failed: Connection timed out
    * Failed to connect to registry-1.docker.io port 443 after 129401 ms: Couldn't connect to server
    * Closing connection 0
    curl: (28) Failed to connect to registry-1.docker.io port 443 after
    129401 ms: Couldn't connect to server





    On Sat, Dec 10, 2022 at 1:32 PM Andreas Fink <[email protected]> wrote:

    On Sat, 10 Dec 2022 12:30:40 -0500
    Mansour Al Akeel <[email protected]> wrote:

    I am using Openrc

    This was my initial /etc/conf.d/docker
    DOCKER_OPTS="--storage-driver overlay2 --data-root /srv/var/lib/docker"

    when I try:

    $ docker pull hello-world

    Error response from daemon: Get "https://registry-1.docker.io/v2/":
    net/http: request canceled while waiting for connection (Client.Timeout
    exceeded while awaiting headers)

    Trying to troubleshoot:

    localhost /home/mansour # tail -n 20 /var/log/docker.log
    time="2022-12-10T12:17:03.473550705-05:00" level=info msg="scheme
    \"unix\"
    not registered, fallback to default scheme" module=grpc
    time="2022-12-10T12:17:03.473566413-05:00" level=info
    msg="ccResolverWrapper: sending update to cc:
    {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" >> > module=grpc
    time="2022-12-10T12:17:03.473573787-05:00" level=info msg="ClientConn
    switching balancer to \"pick_first\"" module=grpc
    time="2022-12-10T12:17:03.474530993-05:00" level=info msg="parsed
    scheme:
    \"unix\"" module=grpc
    time="2022-12-10T12:17:03.474545549-05:00" level=info msg="scheme
    \"unix\"
    not registered, fallback to default scheme" module=grpc
    time="2022-12-10T12:17:03.474563752-05:00" level=info
    msg="ccResolverWrapper: sending update to cc:
    {[{unix:///run/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" >> > module=grpc
    time="2022-12-10T12:17:03.474571186-05:00" level=info msg="ClientConn
    switching balancer to \"pick_first\"" module=grpc
    time="2022-12-10T12:17:03.478908716-05:00" level=warning msg="Your
    kernel
    does not support cgroup blkio weight"
    time="2022-12-10T12:17:03.478927115-05:00" level=warning msg="Your
    kernel
    does not support cgroup blkio weight_device"
    time="2022-12-10T12:17:03.479037897-05:00" level=info msg="Loading
    containers: start."
    time="2022-12-10T12:17:03.495743563-05:00" level=info msg="failed to
    read
    ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0
    syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra
    time="2022-12-10T12:17:03.518761943-05:00" level=info msg="Default
    bridge
    (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option
    --bip
    can be used to set a preferred IP address"
    time="2022-12-10T12:17:03.518886881-05:00" level=info msg="failed to
    read
    ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=docker0
    syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra
    time="2022-12-10T12:17:03.534616741-05:00" level=info msg="Loading
    containers: done."
    time="2022-12-10T12:17:03.541080189-05:00" level=info msg="Docker
    daemon"
    commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17
    time="2022-12-10T12:17:03.541122352-05:00" level=info msg="Daemon has
    completed initialization"
    time="2022-12-10T12:17:03.549888103-05:00" level=info msg="API listen on >> > /var/run/docker.sock"
    time="2022-12-10T12:17:27.025622231-05:00" level=warning msg="Error
    getting
    v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http:
    request
    canceled while waiting for connection (Client.Timeout exceeded while
    awaiting headers)"
    time="2022-12-10T12:17:27.025667054-05:00" level=info msg="Attempting
    next
    endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\
    ":
    net/http: request canceled while waiting for connection (Client.Timeout
    exceeded while awaiting headers)"
    time="2022-12-10T12:17:27.026851821-05:00" level=error msg="Handler for
    POST /v1.41/images/create returned error: Get \"
    https://registry-1.docker.io/v2/\": net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)" >> >
    time="2022-12-10T12:15:42.036053086-05:00" level=info msg="loading
    plugin
    \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1 >> > time="2022-12-10T12:15:42.036068412-05:00" level=error msg="failed to
    initialize a tracing processor \"otlp\"" error="no OpenTelemetry
    endpoint:
    skip plugin"
    time="2022-12-10T12:15:42.036100189-05:00" level=info msg="loading
    plugin
    \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1
    time="2022-12-10T12:15:42.036390695-05:00" level=info msg="Start cri
    plugin
    with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs
    DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine:
    PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]
    PrivilegedWithoutHostDevices:false BaseRuntimeSpec:
    NetworkPluginConfDir:
    NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine: >> > PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]
    PrivilegedWithoutHostDevices:false BaseRuntimeSpec:
    NetworkPluginConfDir:
    NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2 >> > Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root:
    Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0
    IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup:
    SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec: >> > NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false
    DisableSnapshotAnnotations:true DiscardUnpackedLayers:false
    IgnoreRdtNotEnabledErrors:false}
    CniConfig:{NetworkPluginBinDir:/opt/cni/bin
    NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1
    NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath:
    Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]}
    ImageDecryption:{KeyModel:node} DisableTCPService:true
    StreamServerAddress:127.0.0.1 StreamServerPort:0
    StreamIdleTimeout:4h0m0s
    EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage:
    k8s.gcr.io/pause:3.6 StatsCollectPeriod:10 SystemdCgroup:false
    EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:} >> > MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false
    RestrictOOMScoreAdj:false MaxConcurrentDownloads:3
    DisableProcMount:false
    UnsetSeccompProfile: TolerateMissingHugetlbController:true
    DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false
    IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false
    EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false}
    ContainerdRootDir:/var/lib/containerd
    ContainerdEndpoint:/run/containerd/containerd.sock
    RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri
    StateDir:/run/containerd/io.containerd.grpc.v1.cri}"
    time="2022-12-10T12:15:42.036530498-05:00" level=info msg="Connect
    containerd service"
    time="2022-12-10T12:15:42.036627681-05:00" level=info msg="Get image
    filesystem path
    \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\""
    time="2022-12-10T12:15:42.036896077-05:00" level=error msg="failed to
    load
    cni during init, please check CRI plugin status before setting up
    network
    for pods" error="cni config load failed: no network config found in
    /etc/cni/net.d: cni plugin not initialized: failed to load cni config"
    time="2022-12-10T12:15:42.036986623-05:00" level=info msg="Start
    subscribing containerd event"
    time="2022-12-10T12:15:42.037028034-05:00" level=info msg="Start
    recovering
    state"
    time="2022-12-10T12:15:42.037035874-05:00" level=info msg=serving...
    address=/run/containerd/containerd.sock.ttrpc
    time="2022-12-10T12:15:42.037068181-05:00" level=info msg=serving...
    address=/run/containerd/containerd.sock
    time="2022-12-10T12:15:42.037085346-05:00" level=info msg="containerd
    successfully booted in 0.015889s"
    time="2022-12-10T12:15:42.037072303-05:00" level=info msg="Start event
    monitor"
    time="2022-12-10T12:15:42.037107987-05:00" level=info msg="Start
    snapshots
    syncer"
    time="2022-12-10T12:15:42.037119126-05:00" level=info msg="Start cni
    network conf syncer for default"
    time="2022-12-10T12:15:42.037127266-05:00" level=info msg="Start
    streaming
    server"


    Looking at resolv.conf

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line

    So, I added the following to my /etc/dhcpcd.conf
    static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1

    And restarted dhcpcd:

    localhost /home/mansour # cat /etc/resolv.conf
    # Generated by dhcpcd from wlp3s0.dhcp
    # /etc/resolv.conf.head can replace this line
    domain Home
    nameserver 8.8.8.8
    nameserver 8.8.4.4
    nameserver 192.168.1.1
    # /etc/resolv.conf.tail can replace this line


    docker.log still shows the same error:
    time="2022-12-10T12:28:16.519126445-05:00" level=warning msg="Error
    getting
    v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http:
    request
    canceled while waiting for connection (Client.Timeout exceeded while
    awaiting headers)"
    time="2022-12-10T12:28:16.519173944-05:00" level=info msg="Attempting
    next
    endpoint for pull after error: Get \"https://registry-1.docker.io/v2/\
    ":
    net/http: request canceled while waiting for connection (Client.Timeout
    exceeded while awaiting headers)"
    time="2022-12-10T12:28:16.520489790-05:00" level=error msg="Handler for
    POST /v1.41/images/create returned error: Get \"
    https://registry-1.docker.io/v2/\": net/http: request canceled while
    waiting for connection (Client.Timeout exceeded while awaiting headers)" >> >
    I am not able to login with "docker login"

    Where do I look further for additional troubleshooting hints? Google
    didn't
    help a lot.

    Thank you.


    Hello,
    my first step would be checking if there is some inherent network
    problem reaching registry-1.docker.io/v2, e.g. via
    curl -v https://registry-1.docker.io/v2/

    If that runs successfully, you could try if there is an MTU problem. I
    remember that I had to set MTU to 1450 in some virtualized environment,
    otherwise docker would not run correctly, i.e. I had in
    /etc/conf.d/docer
    DOCKER_OPTS="--mtu=1450"

    Hope that gives you an idea what to look for.

    If both does not help, there is wireshark, to watch your network, very
    low-level, but might give some hints.

    Cheers
    Andreas



    <div dir="auto">Thank u<br><br><div data-smartmail="gmail_signature">Dave</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 10, 2022, 3:51 PM Mansour Al Akeel &lt;<a href="mailto:[email protected]">mansour.
    [email protected]</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Andreas,</div><div><br></div><div>Thank you very much. In fact I didn&#39;t go that deep
    yet, and not sure if I should. I just found that the url is not accessible even from a browser. Googling a bit, tells me there is no clear URL for docker-registry and possibly this one is outdated. I will continue looking around to confirm what the
    current default repo should be. If you have any suggestions, please let me know. <br></div><div><br></div><div><br></div><div> localhost in ~<br>○ → curl -k -v <a href="https://registry-1.docker.io/v2/" target="_blank" rel="noreferrer">https://
    registry-1.docker.io/v2/</a><br>*   Trying 34.228.211.243:443...<br><br>* connect to 34.228.211.243 port 443 failed: Connection timed out<br>* Failed to connect to <a href="http://registry-1.docker.io" target="_blank" rel="noreferrer">registry-1.docker.
    io</a> port 443 after 129401 ms: Couldn&#39;t connect to server<br>* Closing connection 0<br>curl: (28) Failed to connect to <a href="http://registry-1.docker.io" target="_blank" rel="noreferrer">registry-1.docker.io</a> port 443 after 129401 ms: Couldn&#
    39;t connect to server<br><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Dec 10, 2022 at 1:32 PM Andreas Fink &lt;<a href="mailto:[email protected]" target="_blank" rel=
    "noreferrer">[email protected]</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, 10 Dec 2022 12:30:40 -0500<br>
    Mansour Al Akeel &lt;<a href="mailto:[email protected]" target="_blank" rel="noreferrer">[email protected]</a>&gt; wrote:<br>

    &gt; I am using Openrc<br>
    &gt;<br>
    &gt; This was my initial /etc/conf.d/docker<br>
    &gt; DOCKER_OPTS=&quot;--storage-driver overlay2 --data-root /srv/var/lib/docker&quot;<br>
    &gt;<br>
    &gt; when I try:<br>
    &gt;<br>
    &gt; $ docker pull hello-world<br>
    &gt;<br>
    &gt; Error response from daemon: Get &quot;<a href="https://registry-1.docker.io/v2/" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/</a>&quot;:<br>
    &gt; net/http: request canceled while waiting for connection (Client.Timeout<br>
    &gt; exceeded while awaiting headers)<br>
    &gt;<br>
    &gt; Trying to troubleshoot:<br>
    &gt;<br>
    &gt; localhost /home/mansour # tail -n 20 /var/log/docker.log<br>
    &gt; time=&quot;2022-12-10T12:17:03.473550705-05:00&quot; level=info msg=&quot;scheme \&quot;unix\&quot;<br>
    &gt; not registered, fallback to default scheme&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.473566413-05:00&quot; level=info<br>
    &gt; msg=&quot;ccResolverWrapper: sending update to cc:<br>
    &gt; {[{unix:///run/containerd/containerd.sock  &lt;nil&gt; 0 &lt;nil&gt;}] &lt;nil&gt; &lt;nil&gt;}&quot;<br>
    &gt; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.473573787-05:00&quot; level=info msg=&quot;ClientConn<br>
    &gt; switching balancer to \&quot;pick_first\&quot;&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474530993-05:00&quot; level=info msg=&quot;parsed scheme:<br>
    &gt; \&quot;unix\&quot;&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474545549-05:00&quot; level=info msg=&quot;scheme \&quot;unix\&quot;<br>
    &gt; not registered, fallback to default scheme&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474563752-05:00&quot; level=info<br>
    &gt; msg=&quot;ccResolverWrapper: sending update to cc:<br>
    &gt; {[{unix:///run/containerd/containerd.sock  &lt;nil&gt; 0 &lt;nil&gt;}] &lt;nil&gt; &lt;nil&gt;}&quot;<br>
    &gt; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.474571186-05:00&quot; level=info msg=&quot;ClientConn<br>
    &gt; switching balancer to \&quot;pick_first\&quot;&quot; module=grpc<br>
    &gt; time=&quot;2022-12-10T12:17:03.478908716-05:00&quot; level=warning msg=&quot;Your kernel<br>
    &gt; does not support cgroup blkio weight&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.478927115-05:00&quot; level=warning msg=&quot;Your kernel<br>
    &gt; does not support cgroup blkio weight_device&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.479037897-05:00&quot; level=info msg=&quot;Loading<br>
    &gt; containers: start.&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.495743563-05:00&quot; level=info msg=&quot;failed to read<br>
    &gt; ipv6 net.ipv6.conf.&lt;bridge&gt;.accept_ra&quot; bridge=docker0<br>
    &gt; syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra<br>
    &gt; time=&quot;2022-12-10T12:17:03.518761943-05:00&quot; level=info msg=&quot;Default bridge<br>
    &gt; (docker0) is assigned with an IP address <a href="http://172.17.0.0/16" rel="noreferrer noreferrer" target="_blank">172.17.0.0/16</a>. Daemon option --bip<br>
    &gt; can be used to set a preferred IP address&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.518886881-05:00&quot; level=info msg=&quot;failed to read<br>
    &gt; ipv6 net.ipv6.conf.&lt;bridge&gt;.accept_ra&quot; bridge=docker0<br>
    &gt; syspath=/proc/sys/net/ipv6/conf/docker0/accept_ra<br>
    &gt; time=&quot;2022-12-10T12:17:03.534616741-05:00&quot; level=info msg=&quot;Loading<br>
    &gt; containers: done.&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.541080189-05:00&quot; level=info msg=&quot;Docker daemon&quot;<br>
    &gt; commit=a89b84221c graphdriver(s)=overlay2 version=20.10.17<br>
    &gt; time=&quot;2022-12-10T12:17:03.541122352-05:00&quot; level=info msg=&quot;Daemon has<br>
    &gt; completed initialization&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:03.549888103-05:00&quot; level=info msg=&quot;API listen on<br>
    &gt; /var/run/docker.sock&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:27.025622231-05:00&quot; level=warning msg=&quot;Error getting<br>
    &gt; v2 registry: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request<br>
    &gt; canceled while waiting for connection (Client.Timeout exceeded while<br> &gt; awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:27.025667054-05:00&quot; level=info msg=&quot;Attempting next<br>
    &gt; endpoint for pull after error: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;:<br>
    &gt; net/http: request canceled while waiting for connection (Client.Timeout<br>
    &gt; exceeded while awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:17:27.026851821-05:00&quot; level=error msg=&quot;Handler for<br>
    &gt; POST /v1.41/images/create returned error: Get \&quot;<br>
    &gt; <a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while<br>
    &gt; waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>
    &gt;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036053086-05:00&quot; level=info msg=&quot;loading plugin<br>
    &gt; \&quot;io.containerd.internal.v1.tracing\&quot;...&quot; type=io.containerd.internal.v1<br>
    &gt; time=&quot;2022-12-10T12:15:42.036068412-05:00&quot; level=error msg=&quot;failed to<br>
    &gt; initialize a tracing processor \&quot;otlp\&quot;&quot; error=&quot;no OpenTelemetry endpoint:<br>
    &gt; skip plugin&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036100189-05:00&quot; level=info msg=&quot;loading plugin<br>
    &gt; \&quot;io.containerd.grpc.v1.cri\&quot;...&quot; type=io.containerd.grpc.v1<br>
    &gt; time=&quot;2022-12-10T12:15:42.036390695-05:00&quot; level=info msg=&quot;Start cri plugin<br>
    &gt; with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs<br> &gt; DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine:<br>
    &gt; PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]<br>
    &gt; PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir:<br>
    &gt; NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine:<br>
    &gt; PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]<br>
    &gt; PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDir:<br>
    &gt; NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v2<br>
    &gt; Path: Engine: PodAnnotations:[] ContainerAnnotations:[] Root:<br>
    &gt; Options:map[BinaryName: CriuImagePath: CriuPath: CriuWorkPath: IoGid:0<br> &gt; IoUid:0 NoNewKeyring:false NoPivotRoot:false Root: ShimCgroup:<br>
    &gt; SystemdCgroup:false] PrivilegedWithoutHostDevices:false BaseRuntimeSpec:<br>
    &gt; NetworkPluginConfDir: NetworkPluginMaxConfNum:0}] NoPivot:false<br>
    &gt; DisableSnapshotAnnotations:true DiscardUnpackedLayers:false<br>
    &gt; IgnoreRdtNotEnabledErrors:false}<br>
    &gt; CniConfig:{NetworkPluginBinDir:/opt/cni/bin<br>
    &gt; NetworkPluginConfDir:/etc/cni/net.d NetworkPluginMaxConfNum:1<br>
    &gt; NetworkPluginConfTemplate: IPPreference:} Registry:{ConfigPath:<br>
    &gt; Mirrors:map[] Configs:map[] Auths:map[] Headers:map[]}<br>
    &gt; ImageDecryption:{KeyModel:node} DisableTCPService:true<br>
    &gt; StreamServerAddress:127.0.0.1 StreamServerPort:0 StreamIdleTimeout:4h0m0s<br>
    &gt; EnableSelinux:false SelinuxCategoryRange:1024 SandboxImage:<br>
    &gt; <a href="http://k8s.gcr.io/pause:3.6" rel="noreferrer noreferrer" target="_blank">k8s.gcr.io/pause:3.6</a> StatsCollectPeriod:10 SystemdCgroup:false<br>
    &gt; EnableTLSStreaming:false X509KeyPairStreaming:{TLSCertFile: TLSKeyFile:}<br>
    &gt; MaxContainerLogLineSize:16384 DisableCgroup:false DisableApparmor:false<br>
    &gt; RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:false<br>
    &gt; UnsetSeccompProfile: TolerateMissingHugetlbController:true<br>
    &gt; DisableHugetlbController:true DeviceOwnershipFromSecurityContext:false<br> &gt; IgnoreImageDefinedVolumes:false NetNSMountsUnderStateDir:false<br>
    &gt; EnableUnprivilegedPorts:false EnableUnprivilegedICMP:false}<br>
    &gt; ContainerdRootDir:/var/lib/containerd<br>
    &gt; ContainerdEndpoint:/run/containerd/containerd.sock<br>
    &gt; RootDir:/var/lib/containerd/io.containerd.grpc.v1.cri<br>
    &gt; StateDir:/run/containerd/io.containerd.grpc.v1.cri}&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036530498-05:00&quot; level=info msg=&quot;Connect<br>
    &gt; containerd service&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036627681-05:00&quot; level=info msg=&quot;Get image<br>
    &gt; filesystem path<br>
    &gt; \&quot;/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\&quot;&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036896077-05:00&quot; level=error msg=&quot;failed to load<br>
    &gt; cni during init, please check CRI plugin status before setting up network<br>
    &gt; for pods&quot; error=&quot;cni config load failed: no network config found in<br>
    &gt; /etc/cni/net.d: cni plugin not initialized: failed to load cni config&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.036986623-05:00&quot; level=info msg=&quot;Start<br>
    &gt; subscribing containerd event&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037028034-05:00&quot; level=info msg=&quot;Start recovering<br>
    &gt; state&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037035874-05:00&quot; level=info msg=serving...<br>
    &gt; address=/run/containerd/containerd.sock.ttrpc<br>
    &gt; time=&quot;2022-12-10T12:15:42.037068181-05:00&quot; level=info msg=serving...<br>
    &gt; address=/run/containerd/containerd.sock<br>
    &gt; time=&quot;2022-12-10T12:15:42.037085346-05:00&quot; level=info msg=&quot;containerd<br>
    &gt; successfully booted in 0.015889s&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037072303-05:00&quot; level=info msg=&quot;Start event<br>
    &gt; monitor&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037107987-05:00&quot; level=info msg=&quot;Start snapshots<br>
    &gt; syncer&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037119126-05:00&quot; level=info msg=&quot;Start cni<br>
    &gt; network conf syncer for default&quot;<br>
    &gt; time=&quot;2022-12-10T12:15:42.037127266-05:00&quot; level=info msg=&quot;Start streaming<br>
    &gt; server&quot;<br>
    &gt;<br>
    &gt;<br>
    &gt; Looking at resolv.conf<br>
    &gt;<br>
    &gt; localhost /home/mansour # cat /etc/resolv.conf<br>
    &gt; # Generated by dhcpcd from wlp3s0.dhcp<br>
    &gt; # /etc/resolv.conf.head can replace this line<br>
    &gt; domain Home<br>
    &gt; nameserver 192.168.1.1<br>
    &gt; # /etc/resolv.conf.tail can replace this line<br>
    &gt;<br>
    &gt; So, I added the following to my /etc/dhcpcd.conf<br>
    &gt; static domain_name_servers=8.8.8.8 8.8.4.4 192.168.1.1<br>
    &gt;<br>
    &gt; And restarted dhcpcd:<br>
    &gt;<br>
    &gt; localhost /home/mansour # cat /etc/resolv.conf<br>
    &gt; # Generated by dhcpcd from wlp3s0.dhcp<br>
    &gt; # /etc/resolv.conf.head can replace this line<br>
    &gt; domain Home<br>
    &gt; nameserver 8.8.8.8<br>
    &gt; nameserver 8.8.4.4<br>
    &gt; nameserver 192.168.1.1<br>
    &gt; # /etc/resolv.conf.tail can replace this line<br>
    &gt;<br>
    &gt;<br>
    &gt; docker.log still shows the same error:<br>
    &gt; time=&quot;2022-12-10T12:28:16.519126445-05:00&quot; level=warning msg=&quot;Error getting<br>
    &gt; v2 registry: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request<br>
    &gt; canceled while waiting for connection (Client.Timeout exceeded while<br> &gt; awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:28:16.519173944-05:00&quot; level=info msg=&quot;Attempting next<br>
    &gt; endpoint for pull after error: Get \&quot;<a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;:<br>
    &gt; net/http: request canceled while waiting for connection (Client.Timeout<br>
    &gt; exceeded while awaiting headers)&quot;<br>
    &gt; time=&quot;2022-12-10T12:28:16.520489790-05:00&quot; level=error msg=&quot;Handler for<br>
    &gt; POST /v1.41/images/create returned error: Get \&quot;<br>
    &gt; <a href="https://registry-1.docker.io/v2/%5C" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/\</a>&quot;: net/http: request canceled while<br>
    &gt; waiting for connection (Client.Timeout exceeded while awaiting headers)&quot;<br>
    &gt;<br>
    &gt; I am not able to login with &quot;docker login&quot;<br>
    &gt;<br>
    &gt; Where do I look further for additional troubleshooting hints? Google didn&#39;t<br>
    &gt; help a lot.<br>
    &gt;<br>
    &gt; Thank you.<br>


    Hello,<br>
    my first step would be checking if there is some inherent network<br>
    problem reaching <a href="http://registry-1.docker.io/v2" rel="noreferrer noreferrer" target="_blank">registry-1.docker.io/v2</a>, e.g. via<br>
    curl -v <a href="https://registry-1.docker.io/v2/" rel="noreferrer noreferrer" target="_blank">https://registry-1.docker.io/v2/</a><br>

    If that runs successfully, you could try if there is an MTU problem. I<br> remember that I had to set MTU to 1450 in some virtualized environment,<br> otherwise docker would not run correctly, i.e. I  had in<br> /etc/conf.d/docer<br>
    DOCKER_OPTS=&quot;--mtu=1450&quot;<br>

    Hope that gives you an idea what to look for.<br>

    If both does not help, there is wireshark, to watch your network, very<br> low-level, but might give some hints.<br>

    Cheers<br>
    Andreas<br>

    </blockquote></div>
    </blockquote></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)