Skip to content

nonexistent executable gives different exit status for crun and krun #1688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
eriksjolund opened this issue Mar 6, 2025 · 1 comment
Open

Comments

@eriksjolund
Copy link
Contributor

eriksjolund commented Mar 6, 2025

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
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants