mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
Ensure that userns is created for stopped rootless pods
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
@@ -868,6 +868,12 @@ func joinOrCreateRootlessUserNamespace(createConfig *cc.CreateConfig, runtime *l
|
||||
if err != nil {
|
||||
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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user