mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +08:00
Fix test
Signed-off-by: karta0807913 <karta0807913@gmail.com>
This commit is contained in:
@ -614,6 +614,11 @@ func Inherit(infra libpod.Container, s *specgen.SpecGenerator, rt *libpod.Runtim
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
|
||||
// podman pod container can override pod ipc NS
|
||||
if !s.IpcNS.IsDefault() {
|
||||
inheritSpec.IpcNS = s.IpcNS
|
||||
}
|
||||
|
||||
// this causes errors when shmSize is the default value, it will still get passed down unless we manually override.
|
||||
if inheritSpec.IpcNS.NSMode == specgen.Host && (compatibleOptions.ShmSize != nil && compatibleOptions.IsDefaultShmSize()) {
|
||||
s.ShmSize = nil
|
||||
|
Reference in New Issue
Block a user