fix shouldKillAllOnExit check
Signed-off-by: Lifubang <lifubang@acmcoder.com>
This commit is contained in:
parent
2d0a06d41b
commit
fa5f744a79
@ -546,7 +546,7 @@ func shouldKillAllOnExit(bundlePath string) (bool, error) {
|
|||||||
|
|
||||||
if bundleSpec.Linux != nil {
|
if bundleSpec.Linux != nil {
|
||||||
for _, ns := range bundleSpec.Linux.Namespaces {
|
for _, ns := range bundleSpec.Linux.Namespaces {
|
||||||
if ns.Type == specs.PIDNamespace {
|
if ns.Type == specs.PIDNamespace && ns.Path == "" {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user