crun
crun copied to clipboard
nonexistent executable gives different exit status for crun and krun
trafficstars
| OCI runtime | podman exit value | podman error messsage |
|---|---|---|
| crun | 127 | Error: crun: executable file `nonexistent` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found |
| runc | 127 | Error: runc: runc create failed: unable to start container process: error during container init: exec: "nonexistent": executable file not found in $PATH: OCI runtime attempted to invoke a command that was not found |
| krun | 0 | Couldn't execute 'nonexistent' inside the vm: No such file or directory |
$ sudo bash -c 'podman run --runtime=crun -t docker.io/library/fedora:41 nonexistent ; echo $?'
Error: crun: executable file `nonexistent` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found
127
$ sudo bash -c 'podman run --runtime=runc -t docker.io/library/fedora:41 nonexistent ; echo $?'
Error: runc: runc create failed: unable to start container process: error during container init: exec: "nonexistent": executable file not found in $PATH: OCI runtime attempted to invoke a command that was not found
127
$ sudo bash -c 'podman run --runtime=krun -t docker.io/library/fedora:41 nonexistent ; echo $?'
Couldn't execute 'nonexistent' inside the vm: No such file or directory
0
$
About the system:
$ cat /etc/os-release | grep ^VERSION=
VERSION="41 (Forty One)"
$ rpm -qa | grep -E 'krun|crun|runc'
libkrunfw-4.7.1-1.fc41.x86_64
libkrun-1.10.1-2.fc41.x86_64
crun-1.20-2.fc41.x86_64
crun-krun-1.20-2.fc41.x86_64
runc-1.2.5-1.fc41.x86_64
libkrun-devel-1.10.1-2.fc41.x86_64
libkrunfw-sev-4.7.1-1.fc41.x86_64
libkrun-sev-1.10.1-2.fc41.x86_64
libkrun-sev-devel-1.10.1-2.fc41.x86_64
libkrunfw-sev-devel-4.7.1-1.fc41.x86_64
libkrunfw-devel-4.7.1-1.fc41.x86_64
$