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 79245158020 for ; Fri, 16 Dec 2022 18:56:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6B4CE0855; Fri, 16 Dec 2022 18:56:09 +0000 (UTC) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (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 ADECAE0828 for ; Fri, 16 Dec 2022 18:56:08 +0000 (UTC) Received: by mail-lj1-x22d.google.com with SMTP id h10so3081896ljk.11 for ; Fri, 16 Dec 2022 10:56:08 -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=irNZYFljzW8iBxwGRXFYZuFftBaOZ/Cjs0a5Pj56ZBk=; b=Dj4mWMVTaDKTZRQftQwjB8bVR/TGKvm6/fyGYEMHXMlykUhsET1tZCgvDz10qqWHug THyMIqQpwip6mzzWMWeU7f8zwtIUmO+X5uAjHWGSmzRf8qzDZvFJlUr6jTEVxvBu/RwN EJCgJiidFes1dzIXFiZh/EOZgrGSE/W+c7DMmgHFJ9YCDIbIEu4vqihJktTFuC1VPWcP bmKy5bSCKKg2tfEsa7V7bvQyr4iIxrwd4pgn3ETkFQ4BxnoEfWbdyowkEN9ezDVDhnJ5 sS+d+Vzzn7c8pBMEotMxBvO2pNj/sbHeSl+uj3APZdgwWq0HP+qKNEYcVlQykRKOpTzH V69A== 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=irNZYFljzW8iBxwGRXFYZuFftBaOZ/Cjs0a5Pj56ZBk=; b=hnha0FzvMYnh8565J7WQ5ku2ggRC89AMZ0aQzB9CNLWw+sZpEAndRZfXV80GxFm9g1 QekT5yJ3FxUMSYiojhQpnpnRrbRt+Dp3oaa7UD6tnM75eT0yltciNCge36hNCouNakJi gzV7rGF8/2BvSBVuhEgh6krRSOny+7NI20g2DlE2uEwmzfaM2izh1fCmwA0VTE036Cg4 g5cUp6g6B2I+yc95tor6Vqgy+XVu4yZfChtqIXjsVQ2WMG0KBe5HiB7Eg58drclNs4ry OJcGOxivATY+xHA2pOaMIGgutO6M7iuIjuhDXmVVnqgjl0uZCmx8iucth0chNFWn5Mrc IDaA== X-Gm-Message-State: ANoB5pmEjEsdqhxZL+IXpDg8p2NtmDWKkQIOb9h5Ry3BPHAwBehonC+H hORZpUqoMMgaCqL9MqIjnm3GKyEm3UIVhaQmIvFWJ5RTM2Y= X-Google-Smtp-Source: AA0mqf5h1IFaBEQ4DTGqXCwkwIym8XXp+EsnIxV2h/ZyCb7GwUnvZBUXyJmBAG1pykyquTHq/2yYjS1Ln2lDWW3Qbyk= X-Received: by 2002:a2e:be07:0:b0:26c:6dce:ce59 with SMTP id z7-20020a2ebe07000000b0026c6dcece59mr27991441ljq.130.1671216966783; Fri, 16 Dec 2022 10:56:06 -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: From: David Rosenbaum Date: Fri, 16 Dec 2022 13:55:57 -0500 Message-ID: Subject: Re: [gentoo-user] Docker installation issues To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000a5d73c05eff68570" X-Archives-Salt: 8c6e09c3-6cbe-4602-acd0-8b739bdab4bc X-Archives-Hash: 6ebca32ab28d237e728849c79d76511b --000000000000a5d73c05eff68570 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank u Dave On Sat, Dec 10, 2022, 3:51 PM Mansour Al Akeel 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 ~ > =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/dock= er" >> > >> > 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 msg=3D"schem= e >> \"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"Clien= tConn >> > switching balancer to \"pick_first\"" module=3Dgrpc >> > time=3D"2022-12-10T12:17:03.474530993-05:00" level=3Dinfo msg=3D"parse= d >> scheme: >> > \"unix\"" module=3Dgrpc >> > time=3D"2022-12-10T12:17:03.474545549-05:00" level=3Dinfo msg=3D"schem= e >> \"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"Clien= tConn >> > switching balancer to \"pick_first\"" module=3Dgrpc >> > time=3D"2022-12-10T12:17:03.478908716-05:00" level=3Dwarning msg=3D"Yo= ur >> kernel >> > does not support cgroup blkio weight" >> > time=3D"2022-12-10T12:17:03.478927115-05:00" level=3Dwarning msg=3D"Yo= ur >> kernel >> > does not support cgroup blkio weight_device" >> > time=3D"2022-12-10T12:17:03.479037897-05:00" level=3Dinfo msg=3D"Loadi= ng >> > containers: start." >> > time=3D"2022-12-10T12:17:03.495743563-05:00" level=3Dinfo msg=3D"faile= d 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"Defau= lt >> 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"faile= d 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"Loadi= ng >> > containers: done." >> > time=3D"2022-12-10T12:17:03.541080189-05:00" level=3Dinfo msg=3D"Docke= r >> daemon" >> > commit=3Da89b84221c graphdriver(s)=3Doverlay2 version=3D20.10.17 >> > time=3D"2022-12-10T12:17:03.541122352-05:00" level=3Dinfo msg=3D"Daemo= n has >> > completed initialization" >> > time=3D"2022-12-10T12:17:03.549888103-05:00" level=3Dinfo msg=3D"API l= isten on >> > /var/run/docker.sock" >> > time=3D"2022-12-10T12:17:27.025622231-05:00" level=3Dwarning msg=3D"Er= ror >> 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 msg=3D"Attem= pting >> 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 msg=3D"Hand= ler 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"loadi= ng >> plugin >> > \"io.containerd.internal.v1.tracing\"..." type=3Dio.containerd.interna= l.v1 >> > time=3D"2022-12-10T12:15:42.036068412-05:00" level=3Derror msg=3D"fail= ed 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"loadi= ng >> 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: >> NetworkPluginConfDir: >> > NetworkPluginMaxConfNum:0} UntrustedWorkloadRuntime:{Type: Path: Engin= e: >> > 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 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: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:fals= e >> > 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=3D"2022-12-10T12:15:42.036530498-05:00" level=3Dinfo msg=3D"Conne= ct >> > containerd service" >> > time=3D"2022-12-10T12:15:42.036627681-05:00" level=3Dinfo msg=3D"Get i= mage >> > filesystem path >> > \"/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs\"" >> > time=3D"2022-12-10T12:15:42.036896077-05:00" level=3Derror msg=3D"fail= ed to >> load >> > cni during init, please check CRI plugin status before setting up >> network >> > 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=3Dservin= g... >> > address=3D/run/containerd/containerd.sock.ttrpc >> > time=3D"2022-12-10T12:15:42.037068181-05:00" level=3Dinfo msg=3Dservin= g... >> > address=3D/run/containerd/containerd.sock >> > time=3D"2022-12-10T12:15:42.037085346-05:00" level=3Dinfo msg=3D"conta= inerd >> > 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"Er= ror >> 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 msg=3D"Attem= pting >> 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 msg=3D"Hand= ler 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 >> >> --000000000000a5d73c05eff68570 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank u

Da= ve

On Sat, Dec 10, 2022, 3:51 PM Mansour Al Akeel <mansour.alakeel@gmail.com> 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 suggest= ions, please let me know.


=C2= =A0localhost in ~
=E2=97=8B =E2=86=92 curl -k -v https://registry= -1.docker.io/v2/
* =C2=A0 Trying 34.228.211.243:443...

* conn= ect 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 conne= ct to registry-1.docker.io port 443 after 129401 ms: Couldn't con= nect to server





On= Sat, Dec 10, 2022 at 1:32 PM Andreas Fink <finkandreas@web.de> w= rote:
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://regist= ry-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. Daem= on 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: request 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 SystemdCgr= oup: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: 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 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

--000000000000a5d73c05eff68570--