spiegel_podman/pkg/specgen
Giuseppe Scrivano e015c9e3f7
podman: add uid and gid options to keep-id
add two new options to the keep-id user namespace option:

- uid: allow to override the UID used inside the container.
- gid: allow to override the GID used inside the container.

For example, the following command will map the rootless user (that
has UID=0 inside the rootless user namespace) to the UID=11 inside the
container user namespace:

$ podman run --userns=keep-id:uid=11 --rm -ti  fedora cat /proc/self/uid_map
         0          1         11
        11          0          1
        12         12      65525

Closes: https://github.com/containers/podman/issues/15294

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2022-08-30 14:39:27 +02:00
..
generate podman: add uid and gid options to keep-id 2022-08-30 14:39:27 +02:00
config_unsupported.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
container_validate.go kube play: sd-notify integration 2022-08-10 21:12:39 +02:00
namespaces.go podman: add uid and gid options to keep-id 2022-08-30 14:39:27 +02:00
namespaces_test.go pkg/specgen: parse default network mode on server 2022-06-01 17:13:30 +02:00
pod_validate.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
podspecgen.go fix namespace reporting 2022-07-07 09:51:20 -04:00
specgen.go run,create: add support for --env-merge for preprocessing vars 2022-08-24 14:06:25 +05:30
specgen_test.go fix test 2021-10-11 17:41:58 +08:00
volumes.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
winpath.go pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
winpath_linux.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath_unsupported.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00
winpath_windows.go Implements Windows volume/mount support 2022-04-25 13:52:27 -05:00