podman
podman
¶
Podman helpers shared by the terok packages.
Currently exposes a single helper that maps the host UID/GID into the container user namespace for rootless podman invocations.
__all__ = ['podman_userns_args']
module-attribute
¶
podman_userns_args()
¶
Return user namespace args for rootless podman so UID 1000 maps correctly.
Maps the host user to container UID/GID 1000, the conventional non-root
dev user in terok container images. Returns an empty list when
running as root — root podman runs in the host user namespace and
has no need to remap.