mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
Merge pull request #5972 from mheon/fix_noinfra
Do not join pod namespaces without an infra ctr
This commit is contained in:
@ -26,7 +26,7 @@ func GetDefaultNamespaceMode(nsType string, cfg *config.Config, pod *libpod.Pod)
|
|||||||
nsType = strings.ToLower(nsType)
|
nsType = strings.ToLower(nsType)
|
||||||
|
|
||||||
// If the pod is not nil - check shared namespaces
|
// If the pod is not nil - check shared namespaces
|
||||||
if pod != nil {
|
if pod != nil && pod.HasInfraContainer() {
|
||||||
podMode := false
|
podMode := false
|
||||||
switch {
|
switch {
|
||||||
case nsType == "pid" && pod.SharesPID():
|
case nsType == "pid" && pod.SharesPID():
|
||||||
|
Reference in New Issue
Block a user