The issue is the outer container has setup /proc with certain read/only mounts and mounted over parts of /proc, when running podman container inside it tries to modify /proc mount and the kernel does not allow this. This format will also work: Xdg_runtime_dir and dbus_session_bus_address are both set correctly
I find very old github issues about something similar but no Also keep in mind that distroless images are meant only to run your program and nothing else I ended up just opening an issue
It looks like the copy Is causing the problem, not sure how, and it seems weird So probably not a rocky problem Leave it up if anyone has any insight
I believe the copy command should be more specific than what you have used It may also not like the fact you are attempting to copy files where the dockerfile is located. Similarly, if you compare your command line and the error message, the double quotes are missing These are removed by the shell before podman sees them, so the argument is no longer a valid json array.
This accomplishes the same thing as podman build would have, but without needing to touch dbus. Issue description i have a debian 12.5 container with podman 4.3.1 installed The host is a redhat 8.5 running podman 4.6.1 Within the container, when i execute podman run, i get the following error
To achieve what you want do this, specify that the shell is the busybox sh function instead of the default /bin/sh that is nonexistent here Keep in mind that you can do this only with a debug image version