mirror of https://github.com/docker/docs.git
daemon: ensure we set default options to stock runtime
Signed-off-by: Antonio Murdaca <runcom@redhat.com> (cherry picked from commit 59162641cc20640afb785540b5f47178835de656) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
234861710f
commit
52ca6cb63a
|
|
@ -579,7 +579,11 @@ func verifyDaemonSettings(config *Config) error {
|
|||
if config.Runtimes == nil {
|
||||
config.Runtimes = make(map[string]types.Runtime)
|
||||
}
|
||||
config.Runtimes[stockRuntimeName] = types.Runtime{Path: DefaultRuntimeBinary}
|
||||
stockRuntimeOpts := []string{}
|
||||
if UsingSystemd(config) {
|
||||
stockRuntimeOpts = append(stockRuntimeOpts, "--systemd-cgroup=true")
|
||||
}
|
||||
config.Runtimes[stockRuntimeName] = types.Runtime{Path: DefaultRuntimeBinary, Args: stockRuntimeOpts}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue