|
@@ -20,6 +20,9 @@ func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Contain
|
|
if rt == nil {
|
|
if rt == nil {
|
|
return nil, fmt.Errorf("no such runtime '%s'", container.HostConfig.Runtime)
|
|
return nil, fmt.Errorf("no such runtime '%s'", container.HostConfig.Runtime)
|
|
}
|
|
}
|
|
|
|
+ if UsingSystemd(daemon.configStore) {
|
|
|
|
+ rt.Args = append(rt.Args, "--systemd-cgroup=true")
|
|
|
|
+ }
|
|
createOptions = append(createOptions, libcontainerd.WithRuntime(rt.Path, rt.Args))
|
|
createOptions = append(createOptions, libcontainerd.WithRuntime(rt.Path, rt.Args))
|
|
|
|
|
|
return &createOptions, nil
|
|
return &createOptions, nil
|