-
I'm running podman on Yocto Linux (where podman is installed via the meta-virtualization layer) and in general everything works normally. After trying to open a shell in an already running container with
and if I try
The container I want to exec the command in was started with I guess there is something not setup correctly or a privilege is missing but I could not find any useful resource where to start.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 20 replies
-
@giuseppe PTAL |
Beta Was this translation helpful? Give feedback.
-
I run
|
Beta Was this translation helpful? Give feedback.
-
After some digging with the help of @giuseppe (thanks a lot) I could solve the problem. Problem: Solution: Some background info can be found here: |
Beta Was this translation helpful? Give feedback.
After some digging with the help of @giuseppe (thanks a lot) I could solve the problem.
Problem:
The problem was NOT podman or some Kernel configs. The real problem was that I have used an
intitramfs
with an init script that created a tmpfs overlay over the rootfs which usedchroot
to switch to the newly setuped rootfs. Unfortunatelychroot
does not work properly with linux mount namespaces. Thus the later errors.Solution:
I just had to replace
chroot
withswitch_root
and everything worked as expected.Some background info can be found here: