mirror of https://github.com/containers/podman.git
Merge pull request #2374 from mheon/rootless_recursive_start
Ensure that userns is created for stopped rootless pods
This commit is contained in:
commit
11a1c23ab3
|
|
@ -868,6 +868,12 @@ func joinOrCreateRootlessUserNamespace(createConfig *cc.CreateConfig, runtime *l
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, -1, err
|
return false, -1, err
|
||||||
}
|
}
|
||||||
|
if pid == 0 {
|
||||||
|
if createConfig.Pod != "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
return false, -1, errors.Errorf("dependency container %s is not running", ctr.ID())
|
||||||
|
}
|
||||||
return rootless.JoinNS(uint(pid))
|
return rootless.JoinNS(uint(pid))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue