google / gvisor

Application Kernel for Containers

Home Page:https://gvisor.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working on Fedora 35 with Docker: OCI runtime create failed: unable to retrieve OCI runtime error (open [...]/log.json: no such file or directory)

Radvylf opened this issue · comments

Description

I've gone through all of the normal installation steps, but docker run --rm --runtime=runsc hello-world just won't work. Here's what I get:

docker: Error response from daemon: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/99a6b510272ba8bae38679ab7039736751c33cfd33d2dc5f31719f86879c3493/log.json: no such file or directory): /var/lib/docker/runtimes/runsc did not terminate successfully: unknown.

I've disabled SELinux to ensure that's not the issue, and I cannot find any denieds in the logs anyway.

I installed Docker using the normal installation steps, and haven't done anything with it at all yet (so I'm not running some weird configuration or something). I've confirmed my /etc/docker/daemon.json is correct, and I've tried suing as nobody and ensured that I can run /usr/local/bin/runsc.

runsc -version

runsc version release-20220103.0
spec: 1.0.2-dev

docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.7.1-docker)
  scan: Docker Scan (Docker Inc., v0.12.0)

Server:
 Containers: 7
  Running: 0
  Paused: 0
  Stopped: 7
 Images: 5
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 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 runsc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.14.10-300.fc35.x86_64
 Operating System: Fedora Linux 35 (Server Edition)
 OSType: linux
 Architecture: x86_64
 CPUs: 8
 Total Memory: 23.5GiB
 Name: rustwolf
 ID: GQCG:44S7:35NT:CFAP:NVUV:6QU7:ZKPZ:MDSH:OMCQ:PM3Q:HKXN:ZWHG
 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 rustwolf 5.14.10-300.fc35.x86_64 #1 SMP Thu Oct 7 20:48:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Same issue as #5865, didn't find it despite searching for a while. Definitely an unintuitive error message :p