Merge pull request #5324 from giuseppe/fix-running-no-pause

rootless: raise error if the process is not found
This commit is contained in:
OpenShift Merge Robot
2020-02-25 21:16:26 +01:00
committed by GitHub

View File

@ -510,7 +510,7 @@ func TryJoinFromFilePaths(pausePidPath string, needNewNamespace bool, paths []st
}
}
}
if !foundProcess {
if !foundProcess && pausePidPath != "" {
return BecomeRootInUserNS(pausePidPath)
}
if lastErr != nil {