Do not move pid 1 to system container

This commit is contained in:
Jimmi Dyson 2016-01-31 23:27:34 +00:00
parent 870220e0f1
commit e9c1d1ebd6

View File

@ -387,7 +387,7 @@ func ensureSystemContainer(rootContainer *fs.Manager, manager *fs.Manager) error
// Remove kernel pids and other protected PIDs (pid 1, PIDs already in system & kubelet containers)
pids := make([]int, 0, len(allPids))
for _, pid := range allPids {
if isKernelPid(pid) {
if pid == 1 || isKernelPid(pid) {
continue
}