mirror of
https://github.com/containers/podman.git
synced 2025-06-01 09:06:44 +08:00
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>
This commit is contained in:
@ -432,4 +432,10 @@ type InfraInherit struct {
|
||||
SeccompProfilePath string `json:"seccomp_profile_path,omitempty"`
|
||||
SelinuxOpts []string `json:"selinux_opts,omitempty"`
|
||||
Volumes []*specgen.NamedVolume `json:"volumes,omitempty"`
|
||||
ShmSize *int64 `json:"shm_size"`
|
||||
}
|
||||
|
||||
// IsDefaultShmSize determines if the user actually set the shm in the parent ctr or if it has been set to the default size
|
||||
func (inherit *InfraInherit) IsDefaultShmSize() bool {
|
||||
return inherit.ShmSize == nil || *inherit.ShmSize == 65536000
|
||||
}
|
||||
|
Reference in New Issue
Block a user