You are not logged in.

#1 2022-01-15 12:27:56

PracticalButterfly5
Member
Registered: 2021-11-18
Posts: 2

Docker - unable to run any image

Trying to run any docker image, I get this

$ sudo docker run --rm -ti alpine echo "Success"
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
e6889e0d6630: Pull complete 
Digest: sha256:21a3deaa0d32a8057914f36584b5288d2e5ecc984380bc0118285c70fa8c9300
Status: Downloaded newer image for alpine:latest
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: process_linux.go:508: setting cgroup config for procHooks process caused: bpf_prog_query(BPF_CGROUP_DEVICE) failed: invalid argument: unknown.

Here is my docker info

$ sudo docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.7.1-docker)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 20.10.12
 Storage Driver: btrfs
  Build Version: Btrfs v5.15.1 
  Library Version: 102
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1407cab509ff0d96baa4f0eb6ff9980270e6e620.m
 runc version: v1.0.3-0-gf46b6ba2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.15.7-arch1-1.0
 Operating System: Arch Linux 32
 OSType: linux
 Architecture: i686
 CPUs: 2
 Total Memory: 981.9MiB
 Name: whyred
 ID: ISLK:JVXE:WU6F:TNYL:5HMS:FIUY:ASQ4:LKRN:L5L2:CZH3:FOQP:H6QF
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
$ uname -a
Linux whyred 5.15.7-arch1-1.0 #1 SMP PREEMPT Thu, 09 Dec 2021 07:16:30 +0000 i686 GNU/Linux

Last edited by PracticalButterfly5 (2022-01-15 12:34:51)


Always learning ……

Offline

#2 2022-01-15 12:45:48

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,042
Website

Re: Docker - unable to run any image

This could be a cgroup1 vs cgroup2 issue.
In LXR I managed to run it when downgrading cgroup:

systemd.unified_cgroup_hierarchy=0

as boot parameter

Tell me, if this helps . :-)

Offline

#3 2022-01-15 12:54:00

PracticalButterfly5
Member
Registered: 2021-11-18
Posts: 2

Re: Docker - unable to run any image

abaumann wrote:

systemd.unified_cgroup_hierarchy=0

as boot parameter

Thanks, that was it :-)

Added it to grub boot parameter and everything works now.


Always learning ……

Offline

#4 2022-01-15 12:59:46

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,042
Website

Re: Docker - unable to run any image

Cool. :-)

Offline

Board footer

Powered by FluxBB