diff options
author | cdoern <cdoern@redhat.com> | 2022-06-16 15:32:32 -0400 |
---|---|---|
committer | Charlie Doern <cdoern@redhat.com> | 2022-06-20 10:25:00 -0400 |
commit | f451b68dfa71d3690d49bc0cf3536b77cd6572d0 (patch) | |
tree | 8f16252090eed226bb74dd4dcfddfe39fb10696d /cmd/podman/common/create.go | |
parent | ff06c791ad7fb32b6a055e0d005f7354df43a5d1 (diff) | |
download | podman-f451b68dfa71d3690d49bc0cf3536b77cd6572d0.tar.gz podman-f451b68dfa71d3690d49bc0cf3536b77cd6572d0.tar.bz2 podman-f451b68dfa71d3690d49bc0cf3536b77cd6572d0.zip |
podman pod create --shm-size
expose the --shm-size flag to podman pod create and add proper handling and inheritance
for the option.
resolves #14609
Signed-off-by: Charlie Doern <cdoern@redhat.com>
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r-- | cmd/podman/common/create.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index 40bb0df78..e25bdd241 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -452,13 +452,6 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, ) _ = cmd.RegisterFlagCompletionFunc(secretFlagName, AutocompleteSecrets) - shmSizeFlagName := "shm-size" - createFlags.String( - shmSizeFlagName, shmSize(), - "Size of /dev/shm "+sizeWithUnitFormat, - ) - _ = cmd.RegisterFlagCompletionFunc(shmSizeFlagName, completion.AutocompleteNone) - stopSignalFlagName := "stop-signal" createFlags.StringVar( &cf.StopSignal, @@ -628,6 +621,13 @@ func DefineCreateFlags(cmd *cobra.Command, cf *entities.ContainerCreateOptions, ) } if isInfra || (!clone && !isInfra) { // infra container flags, create should also pick these up + shmSizeFlagName := "shm-size" + createFlags.String( + shmSizeFlagName, shmSize(), + "Size of /dev/shm "+sizeWithUnitFormat, + ) + _ = cmd.RegisterFlagCompletionFunc(shmSizeFlagName, completion.AutocompleteNone) + sysctlFlagName := "sysctl" createFlags.StringSliceVar( &cf.Sysctl, |