Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
793 stars 187 forks source link

Using Docker #724

Open AlexanderZhirov opened 2 years ago

AlexanderZhirov commented 2 years ago

I want to make a TS build with only Docker support based on the tiny configuration. I leave the tiny configuration untouched. I upload Docker 20.10.9 there. I do everything according to the instructions. Launching Docker:

dockerd &

At the output I get this log:

INFO[2022-05-17T14:09:52.302906070-07:00] Starting up                                  
WARN[2022-05-17T14:09:52.305186757-07:00] could not change group /var/run/docker.sock to docker: group docker not found 
INFO[2022-05-17T14:09:52.310463989-07:00] libcontainerd: started new containerd process  pid=3598
INFO[2022-05-17T14:09:52.310798409-07:00] parsed scheme: "unix"                         module=grpc
INFO[2022-05-17T14:09:52.311117219-07:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-05-17T14:09:52.311466254-07:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-05-17T14:09:52.311713715-07:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2022-05-17T14:09:52.321931255-07:00] starting containerd                           revision=5b46e404f6b9f661a205e28d59c982d3634148f8 version=v1.4.11
INFO[2022-05-17T14:09:52.356217835-07:00] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2022-05-17T14:09:52.356730847-07:00] loading plugin "io.containerd.snapshotter.v1.aufs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.359182794-07:00] skip loading plugin "io.containerd.snapshotter.v1.aufs"...  error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/5.10.89TS\\n\"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.359318405-07:00] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.359955249-07:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"...  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (rootfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.360234951-07:00] loading plugin "io.containerd.snapshotter.v1.devmapper"...  type=io.containerd.snapshotter.v1
WARN[2022-05-17T14:09:52.360441519-07:00] failed to load plugin io.containerd.snapshotter.v1.devmapper  error="devmapper not configured"
INFO[2022-05-17T14:09:52.361315480-07:00] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.361638363-07:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.362065308-07:00] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.362539576-07:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"...  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-17T14:09:52.362792481-07:00] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
WARN[2022-05-17T14:09:52.363097914-07:00] could not use snapshotter devmapper in metadata plugin  error="devmapper not configured"
INFO[2022-05-17T14:09:52.363318260-07:00] metadata content store policy set             policy=shared
INFO[2022-05-17T14:09:52.363783958-07:00] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2022-05-17T14:09:52.364059997-07:00] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2022-05-17T14:09:52.364381665-07:00] loading plugin "io.containerd.service.v1.introspection-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.364693691-07:00] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.364871243-07:00] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.365209827-07:00] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.365468140-07:00] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.365646745-07:00] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.366017561-07:00] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.366249606-07:00] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.366499846-07:00] loading plugin "io.containerd.runtime.v1.linux"...  type=io.containerd.runtime.v1
INFO[2022-05-17T14:09:52.366836011-07:00] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2022-05-17T14:09:52.367251418-07:00] loading plugin "io.containerd.monitor.v1.cgroups"...  type=io.containerd.monitor.v1
INFO[2022-05-17T14:09:52.367878403-07:00] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2022-05-17T14:09:52.368132856-07:00] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2022-05-17T14:09:52.368403764-07:00] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.368641601-07:00] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.368828292-07:00] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.369137787-07:00] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.369390778-07:00] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.369638864-07:00] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.369821656-07:00] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.370172550-07:00] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.370275937-07:00] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2022-05-17T14:09:52.370701924-07:00] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.370954578-07:00] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.371188218-07:00] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.371472663-07:00] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2022-05-17T14:09:52.371924968-07:00] serving...                                    address=/var/run/docker/containerd/containerd-debug.sock
INFO[2022-05-17T14:09:52.372249540-07:00] serving...                                    address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2022-05-17T14:09:52.372561127-07:00] serving...                                    address=/var/run/docker/containerd/containerd.sock
INFO[2022-05-17T14:09:52.372781269-07:00] containerd successfully booted in 0.051620s  
INFO[2022-05-17T14:09:52.379769378-07:00] parsed scheme: "unix"                         module=grpc
INFO[2022-05-17T14:09:52.379936492-07:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-05-17T14:09:52.380424046-07:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-05-17T14:09:52.380637881-07:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2022-05-17T14:09:52.381929866-07:00] parsed scheme: "unix"                         module=grpc
INFO[2022-05-17T14:09:52.382034999-07:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-05-17T14:09:52.382311826-07:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-05-17T14:09:52.382504963-07:00] ClientConn switching balancer to "pick_first"  module=grpc
ERRO[2022-05-17T14:09:52.384985587-07:00] failed to mount overlay: no such device       storage-driver=overlay2
ERRO[2022-05-17T14:09:52.385342524-07:00] exec: "fuse-overlayfs": executable file not found in $PATH  storage-driver=fuse-overlayfs
ERRO[2022-05-17T14:09:52.386772018-07:00] AUFS was not found in /proc/filesystems       storage-driver=aufs
ERRO[2022-05-17T14:09:52.388179433-07:00] failed to mount overlay: no such device       storage-driver=overlay
ERRO[2022-05-17T14:09:52.388199111-07:00] Failed to built-in GetDriver graph devicemapper /var/lib/docker 
WARN[2022-05-17T14:09:52.401154784-07:00] Your kernel does not support cgroup blkio weight 
WARN[2022-05-17T14:09:52.401284704-07:00] Your kernel does not support cgroup blkio weight_device 
INFO[2022-05-17T14:09:52.402090615-07:00] Loading containers: start.                   
WARN[2022-05-17T14:09:52.403727013-07:00] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module bridge not found in directory /lib/modules/5.10.89TS
modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/5.10.89TS
, error: exit status 1 
WARN[2022-05-17T14:09:52.405073956-07:00] Failed to find iptables: exec: "iptables": executable file not found in $PATH 
INFO[2022-05-17T14:09:52.407992937-07:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
INFO[2022-05-17T14:09:52.408448884-07:00] stopping healthcheck following graceful shutdown  module=libcontainerd
INFO[2022-05-17T14:09:52.410522614-07:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=moby
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: Iptables not found

What recommendations will you give for launching Docker? As far as I understand, it is necessary to connect modules. Are they available in TS?

UPD

I made an assembly with all the modules. The result is like this:

INFO[2022-05-17T15:16:27.768940698-07:00] Starting up                                  
WARN[2022-05-17T15:16:27.774195297-07:00] could not change group /var/run/docker.sock to docker: group docker not found 
INFO[2022-05-17T15:16:27.789149823-07:00] libcontainerd: started new containerd process  pid=7393
INFO[2022-05-17T15:16:27.789299192-07:00] parsed scheme: "unix"                         module=grpc
INFO[2022-05-17T15:16:27.789392175-07:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-05-17T15:16:27.789516792-07:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-05-17T15:16:27.789609949-07:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2022-05-17T15:16:27.982930658-07:00] starting containerd                           revision=5b46e404f6b9f661a205e28d59c982d3634148f8 version=v1.4.11
INFO[2022-05-17T15:16:28.023375742-07:00] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2022-05-17T15:16:28.023599185-07:00] loading plugin "io.containerd.snapshotter.v1.aufs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.026005544-07:00] skip loading plugin "io.containerd.snapshotter.v1.aufs"...  error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/5.10.89TS\\n\"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.026152730-07:00] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.026451277-07:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"...  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (rootfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.026554522-07:00] loading plugin "io.containerd.snapshotter.v1.devmapper"...  type=io.containerd.snapshotter.v1
WARN[2022-05-17T15:16:28.028491685-07:00] failed to load plugin io.containerd.snapshotter.v1.devmapper  error="devmapper not configured"
INFO[2022-05-17T15:16:28.028613005-07:00] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.028746978-07:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.029021737-07:00] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.029303401-07:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"...  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-17T15:16:28.029404914-07:00] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
WARN[2022-05-17T15:16:28.029523962-07:00] could not use snapshotter devmapper in metadata plugin  error="devmapper not configured"
INFO[2022-05-17T15:16:28.029616200-07:00] metadata content store policy set             policy=shared
INFO[2022-05-17T15:16:28.029883778-07:00] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2022-05-17T15:16:28.029987580-07:00] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2022-05-17T15:16:28.030230982-07:00] loading plugin "io.containerd.service.v1.introspection-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030348060-07:00] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030444310-07:00] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030537706-07:00] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030631870-07:00] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030725630-07:00] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030819705-07:00] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.030947916-07:00] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.031067566-07:00] loading plugin "io.containerd.runtime.v1.linux"...  type=io.containerd.runtime.v1
INFO[2022-05-17T15:16:28.031262466-07:00] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2022-05-17T15:16:28.031440398-07:00] loading plugin "io.containerd.monitor.v1.cgroups"...  type=io.containerd.monitor.v1
INFO[2022-05-17T15:16:28.032306037-07:00] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2022-05-17T15:16:28.032420358-07:00] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2022-05-17T15:16:28.032557878-07:00] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.032666373-07:00] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.032769031-07:00] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.032870945-07:00] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.032966383-07:00] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033184708-07:00] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033282881-07:00] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033375856-07:00] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033469659-07:00] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2022-05-17T15:16:28.033637660-07:00] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033744919-07:00] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033863052-07:00] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.033956136-07:00] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2022-05-17T15:16:28.034285964-07:00] serving...                                    address=/var/run/docker/containerd/containerd-debug.sock
INFO[2022-05-17T15:16:28.034444899-07:00] serving...                                    address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2022-05-17T15:16:28.034590400-07:00] serving...                                    address=/var/run/docker/containerd/containerd.sock
INFO[2022-05-17T15:16:28.034687229-07:00] containerd successfully booted in 0.052981s  
INFO[2022-05-17T15:16:28.069500379-07:00] parsed scheme: "unix"                         module=grpc
INFO[2022-05-17T15:16:28.069684223-07:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-05-17T15:16:28.069784425-07:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-05-17T15:16:28.069873749-07:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2022-05-17T15:16:28.070951419-07:00] parsed scheme: "unix"                         module=grpc
INFO[2022-05-17T15:16:28.071068111-07:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2022-05-17T15:16:28.071160944-07:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}] <nil> <nil>}  module=grpc
INFO[2022-05-17T15:16:28.071251221-07:00] ClientConn switching balancer to "pick_first"  module=grpc
ERRO[2022-05-17T15:16:28.073631626-07:00] failed to mount overlay: no such device       storage-driver=overlay2
ERRO[2022-05-17T15:16:28.073850751-07:00] exec: "fuse-overlayfs": executable file not found in $PATH  storage-driver=fuse-overlayfs
ERRO[2022-05-17T15:16:28.079190969-07:00] AUFS was not found in /proc/filesystems       storage-driver=aufs
ERRO[2022-05-17T15:16:28.080749633-07:00] failed to mount overlay: no such device       storage-driver=overlay
ERRO[2022-05-17T15:16:28.080768886-07:00] Failed to built-in GetDriver graph devicemapper /var/lib/docker 
WARN[2022-05-17T15:16:28.095666139-07:00] Your kernel does not support cgroup blkio weight 
WARN[2022-05-17T15:16:28.095798317-07:00] Your kernel does not support cgroup blkio weight_device 
INFO[2022-05-17T15:16:28.096037011-07:00] Loading containers: start.                   
WARN[2022-05-17T15:16:28.097481035-07:00] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module bridge not found in directory /lib/modules/5.10.89TS
modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/5.10.89TS
, error: exit status 1 
WARN[2022-05-17T15:16:28.097771680-07:00] Failed to find iptables: exec: "iptables": executable file not found in $PATH 
INFO[2022-05-17T15:16:28.101969501-07:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=moby
INFO[2022-05-17T15:16:28.102352723-07:00] stopping healthcheck following graceful shutdown  module=libcontainerd
INFO[2022-05-17T15:16:28.103656393-07:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
WARN[2022-05-17T15:16:29.104233019-07:00] grpc: addrConn.createTransport failed to connect to {unix:///var/run/docker/containerd/containerd.sock  <nil> 0 <nil>}. Err :connection error: desc = "transport: Error while dialing dial unix:///var/run/docker/containerd/containerd.sock: timeout". Reconnecting...  module=grpc
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: Iptables not found

In both cases, swears at the missing br_netfilter module.

AlexanderZhirov commented 2 years ago

Damn. Idk, do something hacky and restart the socket as part of your process.

This is plan "b" 😁

Doncuppjr commented 1 year ago

You might need full size pivot_root, instead of the limited busybox version. Just copy it into a package/bin dir from the chroot

On Wednesday, May 18, 2022, 05:10:12 AM PDT, Alexander Zhirov @.***> wrote:

   ts_d85ed3156a39:~# docker run hello-world Unable to find image 'hello-world:latest' locally WARN[2022-05-18T04:12:30.563275464-07:00] 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) INFO[2022-05-18T04:12:30.563410913-07:00] 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) ERRO[2022-05-18T04:12:30.565035178-07:00] 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) docker: 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).

Solved this problem as follows:

mkdir -p /etc/pki/tls/certs cd /etc/pki/tls/certs wget https://curl.se/ca/cacert-2022-04-26.pem

After that, the image download command started working, but the startup error remained:

ts_d85ed3156a39:/etc/pki/tls/certs# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 2db29710123e: Pull complete Digest: sha256:80f31da1ac7b312ba29d65080fddf797dd76acfb870e677f390d5acba9741b17 Status: Downloaded newer image for hello-world:latest time="2022-05-18T05:06:22.559549405-07:00" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf pid=9475 INFO[2022-05-18T05:06:23.094687549-07:00] shim disconnected                             id=f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf ERRO[2022-05-18T05:06:23.101121422-07:00] copy shim log                                 error="read /proc/self/fd/14: file already closed" ERRO[2022-05-18T05:06:23.101738126-07:00] stream copy error: reading from a closed fifo ERRO[2022-05-18T05:06:23.102094768-07:00] stream copy error: reading from a closed fifo ERRO[2022-05-18T05:06:23.199006034-07:00] f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf cleanup: failed to delete container from containerd: no such container ERRO[2022-05-18T05:06:23.199157047-07:00] Handler for POST /v1.41/containers/f4613158535b622b2d0a428b91285550a6362373ca6090fbe312be1fee34b4cf/start returned error: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:134: jailing process inside rootfs caused: pivot_root invalid argument: unknown docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:134: jailing process inside rootfs caused: pivot_root invalid argument: unknown. ERRO[0004] error waiting for container: context canceled

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Doncuppjr commented 1 year ago

When docker starts, a few kernel modules are loaded, then some more when you do docker run. Preload them.

Sent from Yahoo Mail for iPhone

On Saturday, June 4, 2022, 4:49 AM, Alexander Zhirov @.***> wrote:

Maybe, put an execpre in the service that calls sleep, and see what happens.

I added a delay to docker.service and then to docker.socket - nothing has changed: ExecStartPre=/bin/sleep 10

could also be module loading, maybe docker trying to do all that on startup is causing an issue.

What do you mean?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>