Replies: 1 comment
|
It is a workaround for a limitation of rootless Podman nested inside a container, not a general recommendation to share the host's The outer container's default masked The tradeoff is exactly what you observed: the procfs superblock came from the outer PID namespace even though the inner container has a new PID namespace. Therefore If you need a namespace-correct podman run --rm \
--env CONTAINERS_CONF=/etc/containers/containers.conf \
--security-opt=unmask=/proc/* \
--security-opt label=disable \
--user podman \
--device /dev/fuse \
quay.io/podman/stable \
podman run --rm alpine ps
There is a security tradeoff: the Podman container gets a less-restricted view of the outer |
Uh oh!
There was an error while loading. Please reload this page.
Per this issue regarding inner container having visibility of the outer process tree, u/giuseppe points out:
This is correct:
Why is this default there, i.e. why is
/procmounted from the parent/outer container?All reactions