Testing Bedrock Linux for the first time : tried to install docker on the ubuntu "chrooted / guest" but it doesn't work properly.

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/bedrocklinux

Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Zigi - Workflow assistant built for devs & their teams
  • SonarQube - Static code analysis for 29 languages.
  • Scout APM - Truly a developer’s best friend
  • containerd

    An open and reliable container runtime

    sudo apt install -y ca-certificates curl gnupg lsb-release curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /bedrock/strata/tut-ubuntu/usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/bedrock/strata/tut-ubuntu/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /bedrock/strata/tut-ubuntu/etc/apt/sources.list.d/docker.list > /dev/null sudo apt install docker-ce docker-ce-cli containerd.io -y sudo apt-get update sudo apt install docker-ce docker-ce-cli containerd.io -y systemd configuration (249.11-0ubuntu3.4)... Created symlink /etc/systemd/system/getty.target.wants/[email protected] → /lib/systemd/system/[email protected] Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target. Created symlink /etc/systemd/system/dbus-org.freedesktop.resolve1.service → /lib/systemd/system/systemd-resolved.service. Created symlink /etc/systemd/system/multi-user.target.wants/systemd-resolved.service → /lib/systemd/system/systemd-resolved.service. cp: '/etc/resolv.conf' and '/run/systemd/resolve/stub-resolv.conf' are the same file dpkg: errore nell'elaborare il pacchetto systemd (--configure): E: Sub-process /usr/bin/dpkg returned an error code (1) [[email protected] ~]$ docker run hello world docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. See 'docker run --help'. [[email protected] ~]$ systemctl start docker Failed to start docker.service: Unit docker.service not found. [[email protected] ~]$ sudo systemctl start docker Failed to start docker.service: Unit docker.service not found. [[email protected] ~]$ sudo systemctl status docker Unit docker.service could not be found. [[email protected] ~]$ sudo systemctl list-units --type=service UNIT LOAD ACTIVE SUB DESCRIPTION > abrt-journal-core.service loaded active running Creates ABRT problems fro> abrt-oops.service loaded active running ABRT kernel log watcher abrt-xorg.service loaded active running ABRT Xorg log watcher abrtd.service loaded active running ABRT Automated Bug Report> accounts-daemon.service loaded active running Accounts Service alsa-state.service loaded active running Manage Sound Card State (> atd.service loaded active running Deferred execution schedu> auditd.service loaded active running Security Auditing Service avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack bedrock-stop-fuse-filesystems.service loaded active exited Shutdown Bedrock Linux FU> chronyd.service loaded active running NTP client/server [[email protected] ~]$ sudo systemctl restart snap.docker.dockerd.service Failed to restart snap.docker.dockerd.service: Unit snap.docker.dockerd.service not found. [[email protected] ~]$ sudo service docker status [sudo] password di marietto: Redirecting to /bin/systemctl status docker.service Unit docker.service could not be found. [[email protected] ~]$ sudo dockerd INFO[2022-09-19T15:32:47.641573999+02:00] Starting up INFO[2022-09-19T15:32:47.647377432+02:00] libcontainerd: started new containerd process pid=471613 INFO[2022-09-19T15:32:47.647417826+02:00] parsed scheme: "unix" module=grpc INFO[2022-09-19T15:32:47.647430557+02:00] scheme "unix" not registered, fallback to default scheme module=grpc INFO[2022-09-19T15:32:47.647455149+02:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc INFO[2022-09-19T15:32:47.647469441+02:00] ClientConn switching balancer to "pick_first" module=grpc WARN[0000] containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header INFO[2022-09-19T15:32:47.682621075+02:00] starting containerd revision=9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6 version=1.6.8 INFO[2022-09-19T15:32:47.700362791+02:00] loading plugin "io.containerd.content.v1.content"... type=io.containerd.content.v1 INFO[2022-09-19T15:32:47.700471440+02:00] loading plugin "io.containerd.snapshotter.v1.aufs"... type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.721022000+02: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.19.9-201.fsync.fc36.x86_64\\n\"): skip plugin" type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.721453650+02:00] loading plugin "io.containerd.snapshotter.v1.btrfs"... type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.721895058+02:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"... error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.721919509+02:00] loading plugin "io.containerd.snapshotter.v1.devmapper"... type=io.containerd.snapshotter.v1 WARN[2022-09-19T15:32:47.721933508+02:00] failed to load plugin io.containerd.snapshotter.v1.devmapper error="devmapper not configured" INFO[2022-09-19T15:32:47.721942902+02:00] loading plugin "io.containerd.snapshotter.v1.native"... type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.722017836+02:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"... type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.722187265+02:00] loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1 INFO[2022-09-19T15:32:47.722448953+02: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-09-19T15:32:47.722468107+02:00] loading plugin "io.containerd.metadata.v1.bolt"... type=io.containerd.metadata.v1 WARN[2022-09-19T15:32:47.722520875+02:00] could not use snapshotter devmapper in metadata plugin error="devmapper not configured" INFO[2022-09-19T15:32:47.722539071+02:00] metadata content store policy set policy=shared INFO[2022-09-19T15:32:47.772913822+02:00] loading plugin "io.containerd.differ.v1.walking"... type=io.containerd.differ.v1 INFO[2022-09-19T15:32:47.773007522+02:00] loading plugin "io.containerd.event.v1.exchange"... type=io.containerd.event.v1 INFO[2022-09-19T15:32:47.773056992+02:00] loading plugin "io.containerd.gc.v1.scheduler"... type=io.containerd.gc.v1 INFO[2022-09-19T15:32:47.773132390+02:00] loading plugin "io.containerd.service.v1.introspection-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773173469+02:00] loading plugin "io.containerd.service.v1.containers-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773211652+02:00] loading plugin "io.containerd.service.v1.content-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773246812+02:00] loading plugin "io.containerd.service.v1.diff-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773284772+02:00] loading plugin "io.containerd.service.v1.images-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773338027+02:00] loading plugin "io.containerd.service.v1.leases-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773381460+02:00] loading plugin "io.containerd.service.v1.namespaces-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773416932+02:00] loading plugin "io.containerd.service.v1.snapshots-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.773452361+02:00] loading plugin "io.containerd.runtime.v1.linux"... type=io.containerd.runtime.v1 INFO[2022-09-19T15:32:47.773791398+02:00] loading plugin "io.containerd.runtime.v2.task"... type=io.containerd.runtime.v2 INFO[2022-09-19T15:32:47.774039045+02:00] loading plugin "io.containerd.monitor.v1.cgroups"... type=io.containerd.monitor.v1 INFO[2022-09-19T15:32:47.774663619+02:00] loading plugin "io.containerd.service.v1.tasks-service"... type=io.containerd.service.v1 INFO[2022-09-19T15:32:47.774738629+02:00] loading plugin "io.containerd.grpc.v1.introspection"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.774790703+02:00] loading plugin "io.containerd.internal.v1.restart"... type=io.containerd.internal.v1 INFO[2022-09-19T15:32:47.774907237+02:00] loading plugin "io.containerd.grpc.v1.containers"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.774948411+02:00] loading plugin "io.containerd.grpc.v1.content"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.774982824+02:00] loading plugin "io.containerd.grpc.v1.diff"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775016928+02:00] loading plugin "io.containerd.grpc.v1.events"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775053446+02:00] loading plugin "io.containerd.grpc.v1.healthcheck"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775088457+02:00] loading plugin "io.containerd.grpc.v1.images"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775124494+02:00] loading plugin "io.containerd.grpc.v1.leases"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775159921+02:00] loading plugin "io.containerd.grpc.v1.namespaces"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775200744+02:00] loading plugin "io.containerd.internal.v1.opt"... type=io.containerd.internal.v1 INFO[2022-09-19T15:32:47.775528473+02:00] loading plugin "io.containerd.grpc.v1.snapshots"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775613755+02:00] loading plugin "io.containerd.grpc.v1.tasks"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775653654+02:00] loading plugin "io.containerd.grpc.v1.version"... type=io.containerd.grpc.v1 INFO[2022-09-19T15:32:47.775688603+02:00] loading plugin "io.containerd.tracing.processor.v1.otlp"... type=io.containerd.tracing.processor.v1 INFO[2022-09-19T15:32:47.775730174+02:00] skip loading plugin "io.containerd.tracing.processor.v1.otlp"... error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1 INFO[2022-09-19T15:32:47.775766375+02:00] loading plugin "io.containerd.internal.v1.tracing"... type=io.containerd.internal.v1 ERRO[2022-09-19T15:32:47.775811434+02:00] failed to initialize a tracing processor "otlp" error="no OpenTelemetry endpoint: skip plugin" INFO[2022-09-19T15:32:47.776267823+02:00] serving... address=/var/run/docker/containerd/containerd-debug.sock INFO[2022-09-19T15:32:47.776399587+02:00] serving... address=/var/run/docker/containerd/containerd.sock.ttrpc INFO[2022-09-19T15:32:47.776521216+02:00] serving... address=/var/run/docker/containerd/containerd.sock INFO[2022-09-19T15:32:47.776603655+02:00] containerd successfully booted in 0.094963s INFO[2022-09-19T15:32:47.791418845+02:00] parsed scheme: "unix" module=grpc INFO[2022-09-19T15:32:47.791470883+02:00] scheme "unix" not registered, fallback to default scheme module=grpc INFO[2022-09-19T15:32:47.791524236+02:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc INFO[2022-09-19T15:32:47.791582180+02:00] ClientConn switching balancer to "pick_first" module=grpc INFO[2022-09-19T15:32:47.794104193+02:00] parsed scheme: "unix" module=grpc INFO[2022-09-19T15:32:47.794159143+02:00] scheme "unix" not registered, fallback to default scheme module=grpc INFO[2022-09-19T15:32:47.794207443+02:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc INFO[2022-09-19T15:32:47.794236098+02:00] ClientConn switching balancer to "pick_first" module=grpc INFO[2022-09-19T15:32:48.369350176+02:00] Loading containers: start. INFO[2022-09-19T15:32:50.532962783+02:00] 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 INFO[2022-09-19T15:32:51.117744986+02:00] Firewalld: interface docker0 already part of docker zone, returning INFO[2022-09-19T15:32:51.631795824+02:00] Loading containers: done. INFO[2022-09-19T15:32:51.914598640+02:00] Docker daemon commit=e42327a graphdriver(s)=overlay2 version=20.10.18 INFO[2022-09-19T15:32:51.914660397+02:00] Daemon has completed initialization INFO[2022-09-19T15:32:52.306079506+02:00] API listen on /var/run/docker.sock WARN[2022-09-19T15:42:20.965785296+02:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:46417->[::1]:53: read: connection refused INFO[2022-09-19T15:42:20.965896337+02:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:46417->[::1]:53: read: connection refused ERRO[2022-09-19T15:42:20.990988291+02:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:46417->[::1]:53: read: connection refused WARN[2022-09-19T15:42:38.680089903+02:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:41021->[::1]:53: read: connection refused INFO[2022-09-19T15:42:38.680127343+02:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:41021->[::1]:53: read: connection refused ERRO[2022-09-19T15:42:38.699248232+02:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:41021->[::1]:53: read: connection refused WARN[2022-09-19T15:44:34.033949990+02:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:37642->[::1]:53: read: connection refused INFO[2022-09-19T15:44:34.033976261+02:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:37642->[::1]:53: read: connection refused ERRO[2022-09-19T15:44:34.053377135+02:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:37642->[::1]:53: read: connection refused WARN[2022-09-19T15:44:59.039453956+02:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:55288->[::1]:53: read: connection refused INFO[2022-09-19T15:44:59.039467048+02:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:55288->[::1]:53: read: connection refused ERRO[2022-09-19T15:44:59.067566659+02:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:55288->[::1]:53: read: connection refused WARN[2022-09-19T15:49:27.644037679+02:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:48639->[::1]:53: read: connection refused INFO[2022-09-19T15:49:27.644052292+02:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:48639->[::1]:53: read: connection refused ERRO[2022-09-19T15:49:27.645090369+02:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:48639->[::1]:53: read: connection refused WARN[2022-09-19T15:49:30.750325973+02:00] Error getting v2 registry: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:45724->[::1]:53: read: connection refused INFO[2022-09-19T15:49:30.750393496+02:00] Attempting next endpoint for pull after error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:45724->[::1]:53: read: connection refused ERRO[2022-09-19T15:49:30.753004376+02:00] Handler for POST /v1.41/images/create returned error: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:45724->[::1]:53: read: connection refused sudo usermod -aG docker marietto sudo chown marietto /var/run/docker.sock sudo chown marietto /bedrock/strata/tut-ubuntu/var/run/docker.sock [[email protected] ~]$ docker pull hello-world Using default tag: latest Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/images/create?fromImage=hello-world&tag=latest": dial unix /var/run/docker.sock: connect: permission denied [[email protected] ~]$ sudo docker pull hello-world Using default tag: latest Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:50606->[::1]:53: read: connection refused [[email protected] ~]$ docker run hello-world Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:46417->[::1]:53: read: connection refused. See 'docker run --help'. [[email protected] ~]$ sudo docker run hello-world Unable to find image 'hello-world:latest' locally docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:41021->[::1]:53: read: connection refused. See 'docker run --help'.

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts