Hello,
I am running Docker version 20.10.22, build 3a2c30b on Antix 22 that runs debian bullseye. After this fresh install i cant get docker to run. when i try the following below, this is what i get:
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’.
I have already run the following:
sudo usermod -aG docker $USER
sudo service docker start
Starting Docker: docker.
then
sudo service docker status
Docker is running.
then this:
docker info
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
compose: Docker Compose (Docker Inc., v2.14.1)
Server:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
errors pretty printing info
i then try the following below:
sudo dockerd
INFO[2023-01-04T07:21:42.828399284+01:00] Starting up
WARN[2023-01-04T07:21:42.828891406+01:00] Binding to IP address without --tlsverify is insecure and gives root access on this machine to everyone who has access to your network. host=“tcp://0.0.0.0:2375”
WARN[2023-01-04T07:21:42.828910253+01:00] Binding to an IP address, even on localhost, can also give access to scripts run in a browser. Be safe out there! host=“tcp://0.0.0.0:2375”
WARN[2023-01-04T07:21:43.829111048+01:00] Binding to an IP address without --tlsverify is deprecated. Startup is intentionally being slowed down to show this message host=“tcp://0.0.0.0:2375”
WARN[2023-01-04T07:21:43.829166066+01:00] Please consider generating tls certificates with client validation to prevent exposing unauthenticated root access to your network host=“tcp://0.0.0.0:2375”
WARN[2023-01-04T07:21:43.829191592+01:00] You can override this by explicitly specifying ‘–tls=false’ or ‘–tlsverify=false’ host=“tcp://0.0.0.0:2375”
WARN[2023-01-04T07:21:43.829205954+01:00] Support for listening on TCP without authentication or explicit intent to run without authentication will be removed in the next release host=“tcp://0.0.0.0:2375”
INFO[2023-01-04T07:21:58.835787450+01:00] libcontainerd: started new containerd process pid=22319
INFO[2023-01-04T07:21:58.835847653+01:00] parsed scheme: “unix” module=grpc
INFO[2023-01-04T07:21:58.835862323+01:00] scheme “unix” not registered, fallback to default scheme module=grpc
INFO[2023-01-04T07:21:58.835892377+01:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc
INFO[2023-01-04T07:21:58.835908775+01: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 containerd/PLUGINS.md at main · containerd/containerd · GitHub
INFO[2023-01-04T07:21:58.857939828+01:00] starting containerd revision=9ba4b250366a5ddde94bb7c9d1def331423aa323 version=1.6.14
INFO[2023-01-04T07:21:58.874327013+01:00] loading plugin “io.containerd.content.v1.content”… type=io.containerd.content.v1
INFO[2023-01-04T07:21:58.874440329+01:00] loading plugin “io.containerd.snapshotter.v1.aufs”… type=io.containerd.snapshotter.v1
INFO[2023-01-04T07:21:58.876599099+01: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.142-antix.2-amd64-smp\n"): skip plugin” type=io.containerd.snapshotter.v1
INFO[2023-01-04T07:21:58.876661495+01:00] loading plugin “io.containerd.snapshotter.v1.btrfs”… type=io.containerd.snapshotter.v1
INFO[2023-01-04T07:21:58.876832383+01: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[2023-01-04T07:21:58.876858903+01:00] loading plugin “io.containerd.snapshotter.v1.devmapper”… type=io.containerd.snapshotter.v1
WARN[2023-01-04T07:21:58.876883327+01:00] failed to load plugin io.containerd.snapshotter.v1.devmapper error=“devmapper not configured”
INFO[2023-01-04T07:21:58.876902903+01:00] loading plugin “io.containerd.snapshotter.v1.native”… type=io.containerd.snapshotter.v1
INFO[2023-01-04T07:21:58.876938627+01:00] loading plugin “io.containerd.snapshotter.v1.overlayfs”… type=io.containerd.snapshotter.v1
INFO[2023-01-04T07:21:58.877053586+01:00] loading plugin “io.containerd.snapshotter.v1.zfs”… type=io.containerd.snapshotter.v1
INFO[2023-01-04T07:21:58.877178869+01: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[2023-01-04T07:21:58.877204413+01:00] loading plugin “io.containerd.metadata.v1.bolt”… type=io.containerd.metadata.v1
WARN[2023-01-04T07:21:58.877234729+01:00] could not use snapshotter devmapper in metadata plugin error=“devmapper not configured”
INFO[2023-01-04T07:21:58.877251892+01:00] metadata content store policy set policy=shared
INFO[2023-01-04T07:21:58.877363669+01:00] loading plugin “io.containerd.differ.v1.walking”… type=io.containerd.differ.v1
INFO[2023-01-04T07:21:58.877393513+01:00] loading plugin “io.containerd.event.v1.exchange”… type=io.containerd.event.v1
INFO[2023-01-04T07:21:58.877422275+01:00] loading plugin “io.containerd.gc.v1.scheduler”… type=io.containerd.gc.v1
INFO[2023-01-04T07:21:58.877464531+01:00] loading plugin “io.containerd.service.v1.introspection-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877485070+01:00] loading plugin “io.containerd.service.v1.containers-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877501729+01:00] loading plugin “io.containerd.service.v1.content-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877524061+01:00] loading plugin “io.containerd.service.v1.diff-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877554328+01:00] loading plugin “io.containerd.service.v1.images-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877579662+01:00] loading plugin “io.containerd.service.v1.leases-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877601011+01:00] loading plugin “io.containerd.service.v1.namespaces-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877617187+01:00] loading plugin “io.containerd.service.v1.snapshots-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.877639400+01:00] loading plugin “io.containerd.runtime.v1.linux”… type=io.containerd.runtime.v1
INFO[2023-01-04T07:21:58.877710124+01:00] loading plugin “io.containerd.runtime.v2.task”… type=io.containerd.runtime.v2
INFO[2023-01-04T07:21:58.877759714+01:00] loading plugin “io.containerd.monitor.v1.cgroups”… type=io.containerd.monitor.v1
INFO[2023-01-04T07:21:58.878178916+01:00] loading plugin “io.containerd.service.v1.tasks-service”… type=io.containerd.service.v1
INFO[2023-01-04T07:21:58.878219131+01:00] loading plugin “io.containerd.grpc.v1.introspection”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878238538+01:00] loading plugin “io.containerd.internal.v1.restart”… type=io.containerd.internal.v1
INFO[2023-01-04T07:21:58.878298853+01:00] loading plugin “io.containerd.grpc.v1.containers”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878319206+01:00] loading plugin “io.containerd.grpc.v1.content”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878335698+01:00] loading plugin “io.containerd.grpc.v1.diff”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878357934+01:00] loading plugin “io.containerd.grpc.v1.events”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878388062+01:00] loading plugin “io.containerd.grpc.v1.healthcheck”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878415154+01:00] loading plugin “io.containerd.grpc.v1.images”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878444450+01:00] loading plugin “io.containerd.grpc.v1.leases”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878470573+01:00] loading plugin “io.containerd.grpc.v1.namespaces”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878490302+01:00] loading plugin “io.containerd.internal.v1.opt”… type=io.containerd.internal.v1
INFO[2023-01-04T07:21:58.878550487+01:00] loading plugin “io.containerd.grpc.v1.snapshots”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878569140+01:00] loading plugin “io.containerd.grpc.v1.tasks”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878584923+01:00] loading plugin “io.containerd.grpc.v1.version”… type=io.containerd.grpc.v1
INFO[2023-01-04T07:21:58.878599710+01:00] loading plugin “io.containerd.tracing.processor.v1.otlp”… type=io.containerd.tracing.processor.v1
INFO[2023-01-04T07:21:58.878618711+01:00] skip loading plugin “io.containerd.tracing.processor.v1.otlp”… error=“no OpenTelemetry endpoint: skip plugin” type=io.containerd.tracing.processor.v1
INFO[2023-01-04T07:21:58.878641705+01:00] loading plugin “io.containerd.internal.v1.tracing”… type=io.containerd.internal.v1
ERRO[2023-01-04T07:21:58.878668683+01:00] failed to initialize a tracing processor “otlp” error=“no OpenTelemetry endpoint: skip plugin”
INFO[2023-01-04T07:21:58.879203923+01:00] serving… address=/var/run/docker/containerd/containerd-debug.sock
INFO[2023-01-04T07:21:58.879306570+01:00] serving… address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2023-01-04T07:21:58.879376245+01:00] serving… address=/var/run/docker/containerd/containerd.sock
INFO[2023-01-04T07:21:58.879421295+01:00] containerd successfully booted in 0.022132s
INFO[2023-01-04T07:21:58.889841354+01:00] parsed scheme: “unix” module=grpc
INFO[2023-01-04T07:21:58.889871042+01:00] scheme “unix” not registered, fallback to default scheme module=grpc
INFO[2023-01-04T07:21:58.889894682+01:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc
INFO[2023-01-04T07:21:58.889908109+01:00] ClientConn switching balancer to “pick_first” module=grpc
INFO[2023-01-04T07:21:58.890903226+01:00] parsed scheme: “unix” module=grpc
INFO[2023-01-04T07:21:58.890924893+01:00] scheme “unix” not registered, fallback to default scheme module=grpc
INFO[2023-01-04T07:21:58.890945953+01:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc
INFO[2023-01-04T07:21:58.890960587+01:00] ClientConn switching balancer to “pick_first” module=grpc
INFO[2023-01-04T07:21:58.969180469+01:00] [graphdriver] using prior storage driver: overlay2
WARN[2023-01-04T07:21:59.177739983+01:00] Your kernel does not support cgroup blkio weight
WARN[2023-01-04T07:21:59.177768861+01:00] Your kernel does not support cgroup blkio weight_device
INFO[2023-01-04T07:21:59.177949565+01:00] Loading containers: start.
WARN[2023-01-04T07:21:59.180344916+01:00] Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: could not insert ‘bridge’: Exec format error
modprobe: ERROR: could not insert ‘br_netfilter’: Invalid argument
insmod /lib/modules/5.10.142-antix.2-amd64-smp/kernel/net/bridge/bridge.ko
insmod /lib/modules/5.10.142-antix.2-amd64-smp/kernel/net/bridge/br_netfilter.ko
, error: exit status 1
INFO[2023-01-04T07:21:59.211737892+01: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[2023-01-04T07:21:59.215923038+01:00] stopping event stream following graceful shutdown error=“” module=libcontainerd namespace=moby
INFO[2023-01-04T07:21:59.216195907+01:00] stopping healthcheck following graceful shutdown module=libcontainerd
INFO[2023-01-04T07:21:59.216209740+01:00] stopping event stream following graceful shutdown error=“context canceled” module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: Error creating default “bridge” network: package not installed
Then i run dpkg -l bridge-utils iptables and get the following below:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±==============-============-============-===================================================
ii bridge-utils 1.7-1 amd64 Utilities for configuring the Linux Ethernet bridge
ii iptables 1.8.7-1 amd64 administration tools for packet filtering and NAT
Then i now run sudo apt-get update && sudo apt-get install bridge-utils iptables and get the following:
Reading package lists… Done
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
bridge-utils is already the newest version (1.7-1).
iptables is already the newest version (1.8.7-1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded
I also read online that sometimes this error comes from the daemon file so i run this:
sudo nano /etc/docker/daemon.json
and this is the content of the file below:
{
“builder”: {
“gc”: {
“defaultKeepStorage”: “20GB”,
“enabled”: true
}
},
“experimental”: false,
“hosts”: [“unix:///var/run/docker.sock”, “tcp://0.0.0.0:2375”],
“features”: {
“buildkit”: true
}
}
Can someone help with suggestions to try to get docker to run as i have tried everything i know.