mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +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)
|
||||
|
||||
// If the pod is not nil - check shared namespaces
|
||||
if pod != nil {
|
||||
if pod != nil && pod.HasInfraContainer() {
|
||||
podMode := false
|
||||
switch {
|
||||
case nsType == "pid" && pod.SharesPID():
|
||||
|
Reference in New Issue
Block a user