Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

[Software] podman "crun: open executable: Permission denied: OCI permission denied"

$
0
0
Hello all. I used to use Debian with Ext4 a while ago and migrated to MicroOS with btrfs. I use LUKS disk encryption. MicroOS is giving me problems with TPM2 decryption, so I want to mix it up and migrate to Debian (no gui for server) + BFTRS + Luks. To do this I'm installing it using debootstrap.

The problem appears when I try to run a rootless podman container:

Code:

Error: unable to start container: crun: open executable: Permission denied: OCI permission denied.
If I run the command with --log-level=debug, for example the following container:

Code:

$ podman run --privileged --security-opt apparmor=unconfined --rm --log-level=debug --name test --group-add keep-groups --pid=host --ipc=host docker.io/traefik/whoami:latest
I get the error:

Code:

DEBU[0000] Received: -1
I have also tried the tags:

Code:

--security-opt label=disable--security-opt seccomp=unconfined--security-opt unmask=all
According to this website https://docs.earthly.dev/docs/guides/podman
crun: open executable: Permission denied: OCI permission denied.
This can happen if you attempt to run (or the ENTRYPOINT references) a binary without the execution permission.
https://github.com/containers/podman/issues/9377
https://github.com/signalwire/freeswitch/pull/1748
But, if I use the Debian installer following this guide, same podman commands are working for me (although it is not the configuration I want).
I don't understand what the problem is.

The rootless user I use belongs to the sudo and dialout groups.

I have tried disabling apparmor:

Code:

$ sudo systemctl disable apparmor
I have rebooted and checked:

Code:

$ sudo aa-statusapparmor module is loaded
Can you tell me what I can check?
I can open the 2 virtual machines in parallel, the one that works and the one that doesn't work

Statistics: Posted by juanj — 2024-09-27 15:42 — Replies 4 — Views 111



Viewing all articles
Browse latest Browse all 3423

Trending Articles