You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The root cause on this and #1688 is the same. In libkrun we don't support relying the exit code from the guest to the host. But, for container use case, there's a relatively simple way of relying such value. I'll implement something next week.
crun and krun have different exit status when the command is a file with permission mode
000
or a directoryExample 1: command is a directory
Error: crun: open executable: Operation not permitted: OCI permission denied
Error: OCI runtime error: runc: runc create failed: unable to start container process: error during container init: exec: "/etc": is a directory
Couldn't execute '/etc' inside the vm: Permission denied
Example 2: command is a file with permission mode
000
Error: crun: open executable: Permission denied: OCI permission denied
Error: runc: runc create failed: unable to start container process: error during container init: exec: "/usr/bin/restricted-file": permission denied: OCI permission denied
Couldn't execute '/usr/bin/restricted-file' inside the vm: Permission denied
This Containerfile was used to build the container image localhost/test
About the system:
Side note: This issue has similarities with the issue
The text was updated successfully, but these errors were encountered: