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:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user