From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B0806158020 for ; Sat, 10 Dec 2022 20:50:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42F8DE088B; Sat, 10 Dec 2022 20:50:53 +0000 (UTC) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A2903E086D for ; Sat, 10 Dec 2022 20:50:52 +0000 (UTC) Received: by mail-wr1-x430.google.com with SMTP id h10so8396393wrx.3 for ; Sat, 10 Dec 2022 12:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=b9rEPymT1/LkNYziT6Kn1xn127DTVXCsmvH+ZOMWjVM=; b=gC3grGyLMq/T/IAGmdVfWKccgefVLbqwMUcNpMWbvzhSAz8E7eH615EMPKEe5Sm1SW XwQnfBysD14pM7uJy7EZPA6yKtFtvbDNDzfbFK1i3Be6S9/mBbnWTO1GWg9bTltpV2lm wiGBXwlMZcfqT090A/LMWDKmLqMpgH52BlT/rn1A2t2n//cuBurC57JF4FaY02N3QUY8 iP3L1tYsY3tFoMk9Iu3m9FwRsjveKB5OdUCkjzzgkZMcvh/9Gfo52OgTqwDEfRcGxjEk bpHdxGrOF+E6FjaRr3quNkX26KH6eIWtRxmJvDIY+AbGg1lb2Z1MmytQIS0TnJPBRnA8 2NKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b9rEPymT1/LkNYziT6Kn1xn127DTVXCsmvH+ZOMWjVM=; b=wFYTYp5hZSPoV6IiZZVyUCjFHNEMdOxFsaNSIOYNp3DN3/36t8mC4R8ukxfpEh5yG1 zJiUujJ8SgbmKW9ReSR/TG35OA/VDdlgVz16vFT627l5sIQVSZzzG/Ydu9d1727A2ZSG bpwkuCiabfNWXx3Xjrd62dXLvmJ6cTa5p+evqP2mcT85INliobbQYD+403v1kY0PFCDR iyjaH4/WUm4rHirHZZDLOpT5XkO2H73+VJN+APObNCnD65UnCYJrfXHbbalR5kVydltm 2Qo2hUzcMLT3GwV3iRxHnvCwcMeb5BU0nogvxEbjO2U2bxpfVsvdEUptJJkJJhuIQvIP 3sYQ== X-Gm-Message-State: ANoB5pmZOMC+WV+XGKnEhLte66r+AoWAb6UvGMSVcxD0ajGTWUsw0zpI Q4Qhl1vF7QhJtSQTUuUe3RvFnjnmfj9FfgI6+hPBb0hJI5o= X-Google-Smtp-Source: AA0mqf48Z+/j4JgkW7fJvCxFqvRZ/97cYVUK4MJfZcRLwhd+MzqlakJzY2RxOHDGkyvsAhqCm5KyKjZd3oBDHsH+9I0= X-Received: by 2002:a5d:58c6:0:b0:242:da2:7f50 with SMTP id o6-20020a5d58c6000000b002420da27f50mr31019121wrf.507.1670705449847; Sat, 10 Dec 2022 12:50:49 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <20221210193141.1fe1a11b@web.de> In-Reply-To: <20221210193141.1fe1a11b@web.de> From: Mansour Al Akeel Date: Sat, 10 Dec 2022 15:51:17 -0500 Message-ID: Subject: Re: [gentoo-user] Docker installation issues To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000dcd15905ef7f6ca9" X-Archives-Salt: e0a16bf9-7d8b-460a-a452-b42573c2014a X-Archives-Hash: 6d154b407e6012d42bc9449149cf255b --000000000000dcd15905ef7f6ca9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 ~ =E2=97=8B =E2=86=92 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 wrote: > On Sat, 10 Dec 2022 12:30:40 -0500 > Mansour Al Akeel wrote: > > > I am using Openrc > > > > This was my initial /etc/conf.d/docker > > DOCKER_OPTS=3D"--storage-driver overlay2 --data-root /srv/var/lib/docke= r" > > > > 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=3D"2022-12-10T12:17:03.473550705-05:00" level=3Dinfo msg=3D"scheme > \"unix\" > > not registered, fallback to default scheme" module=3Dgrpc > > time=3D"2022-12-10T12:17:03.473566413-05:00" level=3Dinfo > > msg=3D"ccResolverWrapper: sending update to cc: > > {[{unix:///run/containerd/containerd.sock 0 }] }= " > > module=3Dgrpc > > time=3D"2022-12-10T12:17:03.473573787-05:00" level=3Dinfo msg=3D"Client= Conn > > switching balancer to \"pick_first\"" module=3Dgrpc > > time=3D"2022-12-10T12:17:03.474530993-05:00" level=3Dinfo msg=3D"parsed= scheme: > > \"unix\"" module=3Dgrpc > > time=3D"2022-12-10T12:17:03.474545549-05:00" level=3Dinfo msg=3D"scheme > \"unix\" > > not registered, fallback to default scheme" module=3Dgrpc > > time=3D"2022-12-10T12:17:03.474563752-05:00" level=3Dinfo > > msg=3D"ccResolverWrapper: sending update to cc: > > {[{unix:///run/containerd/containerd.sock 0 }] }= " > > module=3Dgrpc > > time=3D"2022-12-10T12:17:03.474571186-05:00" level=3Dinfo msg=3D"Client= Conn > > switching balancer to \"pick_first\"" module=3Dgrpc > > time=3D"2022-12-10T12:17:03.478908716-05:00" level=3Dwarning msg=3D"You= r kernel > > does not support cgroup blkio weight" > > time=3D"2022-12-10T12:17:03.478927115-05:00" level=3Dwarning msg=3D"You= r kernel > > does not support cgroup blkio weight_device" > > time=3D"2022-12-10T12:17:03.479037897-05:00" level=3Dinfo msg=3D"Loadin= g > > containers: start." > > time=3D"2022-12-10T12:17:03.495743563-05:00" level=3Dinfo msg=3D"failed= to read > > ipv6 net.ipv6.conf..accept_ra" bridge=3Ddocker0 > > syspath=3D/proc/sys/net/ipv6/conf/docker0/accept_ra > > time=3D"2022-12-10T12:17:03.518761943-05:00" level=3Dinfo msg=3D"Defaul= t 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=3D"2022-12-10T12:17:03.518886881-05:00" level=3Dinfo msg=3D"failed= to read > > ipv6 net.ipv6.conf..accept_ra" bridge=3Ddocker0 > > syspath=3D/proc/sys/net/ipv6/conf/docker0/accept_ra > > time=3D"2022-12-10T12:17:03.534616741-05:00" level=3Dinfo msg=3D"Loadin= g > > containers: done." > > time=3D"2022-12-10T12:17:03.541080189-05:00" level=3Dinfo msg=3D"Docker= daemon" > > commit=3Da89b84221c graphdriver(s)=3Doverlay2 version=3D20.10.17 > > time=3D"2022-12-10T12:17:03.541122352-05:00" level=3Dinfo msg=3D"Daemon= has > > completed initialization" > > time=3D"2022-12-10T12:17:03.549888103-05:00" level=3Dinfo msg=3D"API li= sten on > > /var/run/docker.sock" > > time=3D"2022-12-10T12:17:27.025622231-05:00" level=3Dwarning msg=3D"Err= or > getting > > v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: reques= t > > canceled while waiting for connection (Client.Timeout exceeded while > > awaiting headers)" > > time=3D"2022-12-10T12:17:27.025667054-05:00" level=3Dinfo msg=3D"Attemp= ting > 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=3D"2022-12-10T12:17:27.026851821-05:00" level=3Derror msg=3D"Handl= er 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=3D"2022-12-10T12:15:42.036053086-05:00" level=3Dinfo msg=3D"loadin= g plugin > > \"io.containerd.internal.v1.tracing\"..." type=3Dio.containerd.internal= .v1 > > time=3D"2022-12-10T12:15:42.036068412-05:00" level=3Derror msg=3D"faile= d to > > initialize a tracing processor \"otlp\"" error=3D"no OpenTelemetry > endpoint: > > skip plugin" > > time=3D"2022-12-10T12:15:42.036100189-05:00" level=3Dinfo msg=3D"loadin= g plugin > > \"io.containerd.grpc.v1.cri\"..." type=3Dio.containerd.grpc.v1 > > time=3D"2022-12-10T12:15:42.036390695-05:00" level=3Dinfo msg=3D"Start = cri > plugin > > with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs > > DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine: > > PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] > > PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDi= r: > > NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engine= : > > PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[] > > PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfDi= r: > > NetworkPluginMaxConfNum:0} Runtimes:map[runc:{Type:io.containerd.runc.v= 2 > > 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:4h0m= 0s > > 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:fal= se > > 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=3D"2022-12-10T12:15:42.036530498-05:00" level=3Dinfo msg=3D"Connec= t > > containerd service" > > time=3D"2022-12-10T12:15:42.036627681-05:00" level=3Dinfo msg=3D"Get im= age > > filesystem path > > \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" > > time=3D"2022-12-10T12:15:42.036896077-05:00" level=3Derror msg=3D"faile= d to > load > > cni during init, please check CRI plugin status before setting up netwo= rk > > for pods" error=3D"cni config load failed: no network config found in > > /etc/cni/net.d: cni plugin not initialized: failed to load cni config" > > time=3D"2022-12-10T12:15:42.036986623-05:00" level=3Dinfo msg=3D"Start > > subscribing containerd event" > > time=3D"2022-12-10T12:15:42.037028034-05:00" level=3Dinfo msg=3D"Start > recovering > > state" > > time=3D"2022-12-10T12:15:42.037035874-05:00" level=3Dinfo msg=3Dserving= ... > > address=3D/run/containerd/containerd.sock.ttrpc > > time=3D"2022-12-10T12:15:42.037068181-05:00" level=3Dinfo msg=3Dserving= ... > > address=3D/run/containerd/containerd.sock > > time=3D"2022-12-10T12:15:42.037085346-05:00" level=3Dinfo msg=3D"contai= nerd > > successfully booted in 0.015889s" > > time=3D"2022-12-10T12:15:42.037072303-05:00" level=3Dinfo msg=3D"Start = event > > monitor" > > time=3D"2022-12-10T12:15:42.037107987-05:00" level=3Dinfo msg=3D"Start > snapshots > > syncer" > > time=3D"2022-12-10T12:15:42.037119126-05:00" level=3Dinfo msg=3D"Start = cni > > network conf syncer for default" > > time=3D"2022-12-10T12:15:42.037127266-05:00" level=3Dinfo msg=3D"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=3D8.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=3D"2022-12-10T12:28:16.519126445-05:00" level=3Dwarning msg=3D"Err= or > getting > > v2 registry: Get \"https://registry-1.docker.io/v2/\": net/http: reques= t > > canceled while waiting for connection (Client.Timeout exceeded while > > awaiting headers)" > > time=3D"2022-12-10T12:28:16.519173944-05:00" level=3Dinfo msg=3D"Attemp= ting > 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=3D"2022-12-10T12:28:16.520489790-05:00" level=3Derror msg=3D"Handl= er 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=3D"--mtu=3D1450" > > 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 > > --000000000000dcd15905ef7f6ca9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Andreas,

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


=C2=A0localhost in ~
=E2=97=8B =E2= =86=92 curl -k -v https://regi= stry-1.docker.io/v2/
* =C2=A0 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 <finkandreas@web.de> wrote:
On Sat, 10 Dec 2022 12:30:40 -0500
Mansour Al Akeel <mansour.alakeel@gmail.com> wrote:

> I am using Openrc
>
> This was my initial /etc/conf.d/docker
> DOCKER_OPTS=3D"--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.Timeou= t
> exceeded while awaiting headers)
>
> Trying to troubleshoot:
>
> localhost /home/mansour # tail -n 20 /var/log/docker.log
> time=3D"2022-12-10T12:17:03.473550705-05:00" level=3Dinfo ms= g=3D"scheme \"unix\"
> not registered, fallback to default scheme" module=3Dgrpc
> time=3D"2022-12-10T12:17:03.473566413-05:00" level=3Dinfo > msg=3D"ccResolverWrapper: sending update to cc:
> {[{unix:///run/containerd/containerd.sock=C2=A0 <nil> 0 <nil&= gt;}] <nil> <nil>}"
> module=3Dgrpc
> time=3D"2022-12-10T12:17:03.473573787-05:00" level=3Dinfo ms= g=3D"ClientConn
> switching balancer to \"pick_first\"" module=3Dgrpc
> time=3D"2022-12-10T12:17:03.474530993-05:00" level=3Dinfo ms= g=3D"parsed scheme:
> \"unix\"" module=3Dgrpc
> time=3D"2022-12-10T12:17:03.474545549-05:00" level=3Dinfo ms= g=3D"scheme \"unix\"
> not registered, fallback to default scheme" module=3Dgrpc
> time=3D"2022-12-10T12:17:03.474563752-05:00" level=3Dinfo > msg=3D"ccResolverWrapper: sending update to cc:
> {[{unix:///run/containerd/containerd.sock=C2=A0 <nil> 0 <nil&= gt;}] <nil> <nil>}"
> module=3Dgrpc
> time=3D"2022-12-10T12:17:03.474571186-05:00" level=3Dinfo ms= g=3D"ClientConn
> switching balancer to \"pick_first\"" module=3Dgrpc
> time=3D"2022-12-10T12:17:03.478908716-05:00" level=3Dwarning= msg=3D"Your kernel
> does not support cgroup blkio weight"
> time=3D"2022-12-10T12:17:03.478927115-05:00" level=3Dwarning= msg=3D"Your kernel
> does not support cgroup blkio weight_device"
> time=3D"2022-12-10T12:17:03.479037897-05:00" level=3Dinfo ms= g=3D"Loading
> containers: start."
> time=3D"2022-12-10T12:17:03.495743563-05:00" level=3Dinfo ms= g=3D"failed to read
> ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=3Ddocker0
> syspath=3D/proc/sys/net/ipv6/conf/docker0/accept_ra
> time=3D"2022-12-10T12:17:03.518761943-05:00" level=3Dinfo ms= g=3D"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=3D"2022-12-10T12:17:03.518886881-05:00" level=3Dinfo ms= g=3D"failed to read
> ipv6 net.ipv6.conf.<bridge>.accept_ra" bridge=3Ddocker0
> syspath=3D/proc/sys/net/ipv6/conf/docker0/accept_ra
> time=3D"2022-12-10T12:17:03.534616741-05:00" level=3Dinfo ms= g=3D"Loading
> containers: done."
> time=3D"2022-12-10T12:17:03.541080189-05:00" level=3Dinfo ms= g=3D"Docker daemon"
> commit=3Da89b84221c graphdriver(s)=3Doverlay2 version=3D20.10.17
> time=3D"2022-12-10T12:17:03.541122352-05:00" level=3Dinfo ms= g=3D"Daemon has
> completed initialization"
> time=3D"2022-12-10T12:17:03.549888103-05:00" level=3Dinfo ms= g=3D"API listen on
> /var/run/docker.sock"
> time=3D"2022-12-10T12:17:27.025622231-05:00" level=3Dwarning= msg=3D"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=3D"2022-12-10T12:17:27.025667054-05:00" level=3Dinfo ms= g=3D"Attempting next
> endpoint for pull after error: Get \"
https://registry-1= .docker.io/v2/\":
> net/http: request canceled while waiting for connection (Client.Timeou= t
> exceeded while awaiting headers)"
> time=3D"2022-12-10T12:17:27.026851821-05:00" level=3Derror m= sg=3D"Handler for
> POST /v1.41/images/create returned error: Get \"
> https://registry-1.docker.io/v2/\": net/http: reque= st canceled while
> waiting for connection (Client.Timeout exceeded while awaiting headers= )"
>
> time=3D"2022-12-10T12:15:42.036053086-05:00" level=3Dinfo ms= g=3D"loading plugin
> \"io.containerd.internal.v1.tracing\"..." type=3Dio.con= tainerd.internal.v1
> time=3D"2022-12-10T12:15:42.036068412-05:00" level=3Derror m= sg=3D"failed to
> initialize a tracing processor \"otlp\"" error=3D"= no OpenTelemetry endpoint:
> skip plugin"
> time=3D"2022-12-10T12:15:42.036100189-05:00" level=3Dinfo ms= g=3D"loading plugin
> \"io.containerd.grpc.v1.cri\"..." type=3Dio.containerd.= grpc.v1
> time=3D"2022-12-10T12:15:42.036390695-05:00" level=3Dinfo ms= g=3D"Start cri plugin
> with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs
> DefaultRuntimeName:runc DefaultRuntime:{Type: Path: Engine:
> PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]
> PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfD= ir:
> NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engin= e:
> PodAnnotations:[] ContainerAnnotations:[] Root: Options:map[]
> PrivilegedWithoutHostDevices:false BaseRuntimeSpec: NetworkPluginConfD= ir:
> 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 BaseRuntimeSpe= c:
> 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:4h0= m0s
> 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:fals= e
> RestrictOOMScoreAdj:false MaxConcurrentDownloads:3 DisableProcMount:fa= lse
> 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=3D"2022-12-10T12:15:42.036530498-05:00" level=3Dinfo ms= g=3D"Connect
> containerd service"
> time=3D"2022-12-10T12:15:42.036627681-05:00" level=3Dinfo ms= g=3D"Get image
> filesystem path
> \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\&quo= t;"
> time=3D"2022-12-10T12:15:42.036896077-05:00" level=3Derror m= sg=3D"failed to load
> cni during init, please check CRI plugin status before setting up netw= ork
> for pods" error=3D"cni config load failed: no network config= found in
> /etc/cni/net.d: cni plugin not initialized: failed to load cni config&= quot;
> time=3D"2022-12-10T12:15:42.036986623-05:00" level=3Dinfo ms= g=3D"Start
> subscribing containerd event"
> time=3D"2022-12-10T12:15:42.037028034-05:00" level=3Dinfo ms= g=3D"Start recovering
> state"
> time=3D"2022-12-10T12:15:42.037035874-05:00" level=3Dinfo ms= g=3Dserving...
> address=3D/run/containerd/containerd.sock.ttrpc
> time=3D"2022-12-10T12:15:42.037068181-05:00" level=3Dinfo ms= g=3Dserving...
> address=3D/run/containerd/containerd.sock
> time=3D"2022-12-10T12:15:42.037085346-05:00" level=3Dinfo ms= g=3D"containerd
> successfully booted in 0.015889s"
> time=3D"2022-12-10T12:15:42.037072303-05:00" level=3Dinfo ms= g=3D"Start event
> monitor"
> time=3D"2022-12-10T12:15:42.037107987-05:00" level=3Dinfo ms= g=3D"Start snapshots
> syncer"
> time=3D"2022-12-10T12:15:42.037119126-05:00" level=3Dinfo ms= g=3D"Start cni
> network conf syncer for default"
> time=3D"2022-12-10T12:15:42.037127266-05:00" level=3Dinfo ms= g=3D"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=3D8.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=3D"2022-12-10T12:28:16.519126445-05:00" level=3Dwarning= msg=3D"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=3D"2022-12-10T12:28:16.519173944-05:00" level=3Dinfo ms= g=3D"Attempting next
> endpoint for pull after error: Get \"
https://registry-1= .docker.io/v2/\":
> net/http: request canceled while waiting for connection (Client.Timeou= t
> exceeded while awaiting headers)"
> time=3D"2022-12-10T12:28:16.520489790-05:00" level=3Derror m= sg=3D"Handler for
> POST /v1.41/images/create returned error: Get \"
> https://registry-1.docker.io/v2/\": net/http: reque= st 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 d= idn'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=C2=A0 had in
/etc/conf.d/docer
DOCKER_OPTS=3D"--mtu=3D1450"

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

--000000000000dcd15905ef7f6ca9--