mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
podman: new option --preserve-fd
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>
This commit is contained in:
@ -180,6 +180,11 @@ type ContainerBasicConfig struct {
|
||||
// set tags as `json:"-"` for not supported remote
|
||||
// Optional.
|
||||
PreserveFDs uint `json:"-"`
|
||||
// PreserveFD is a list of additional file descriptors (in addition
|
||||
// to 0, 1, 2) that will be passed to the executed process.
|
||||
// set tags as `json:"-"` for not supported remote
|
||||
// Optional.
|
||||
PreserveFD []uint `json:"-"`
|
||||
// Timezone is the timezone inside the container.
|
||||
// Local means it has the same timezone as the host machine
|
||||
// Optional.
|
||||
|
Reference in New Issue
Block a user