mirror of
https://github.com/containers/podman.git
synced 2025-05-31 15:42:48 +08:00

add a new option --preserve-fd that allows to specify a list of FDs to pass down to the container. It is similar to --preserve-fds but it allows to specify a list of FDs instead of the maximum FD number to preserve. --preserve-fd and --preserve-fds are mutually exclusive. It requires crun since runc would complain if any fd below --preserve-fds is not preserved. Closes: https://github.com/containers/podman/issues/20844 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
563 B
563 B
####> This option file is used in: ####> podman exec, run ####> If file is edited, make sure the changes ####> are applicable to all of those.
--preserve-fd=FD1[,FD2,...]
Pass down to the process the additional file descriptors specified in the comma separated list. It can be specified multiple times. This option is only supported with the crun OCI runtime. It might be a security risk to use this option with other OCI runtimes.
(This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)