1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Farewell PID one

This change no longer runs Docker as PID 1.  Instead PID 1 is a very
simple zombie reaper and Docker is moved as a child of that PID.
This commit is contained in:
Darren Shepherd
2015-12-22 15:14:51 -07:00
parent 6df9841283
commit cd2829d220
6 changed files with 47 additions and 2 deletions

View File

@@ -194,8 +194,12 @@ func RunInit() error {
}
launchConfig, args := getLaunchConfig(cfg, &cfg.Rancher.SystemDocker)
launchConfig.Fork = !cfg.Rancher.SystemDocker.Exec
log.Info("Launching System Docker")
_, err = dockerlaunch.LaunchDocker(launchConfig, config.DOCKER_BIN, args...)
return err
if err != nil {
return err
}
return pidOne()
}