mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Merge pull request #5324 from giuseppe/fix-running-no-pause
rootless: raise error if the process is not found
This commit is contained in:
@ -510,7 +510,7 @@ func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []st
|
||||
}
|
||||
}
|
||||
}
|
||||
if !foundProcess {
|
||||
if !foundProcess && pausePidPath != "" {
|
||||
return BecomeRootInUserNS(pausePidPath)
|
||||
}
|
||||
if lastErr != nil {
|
||||
|
Reference in New Issue
Block a user