diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index 5683409328..ad94533863 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -8,6 +8,10 @@ Wants=network-online.target [Service] # Install containerd-shim-process if it's not already installed ExecStartPre=/usr/libexec/containerd-offline-installer /var/lib/containerd-offline-installer/containerd-shim-process.tar docker.io/docker/containerd-shim-process + +# the default is not to use systemd for cgroups because the delegate issues still +# exists and systemd currently does not support the cgroup feature set required +# for containers run by docker ExecStart=/usr/bin/dockerd ExecStopPost=/usr/bin/dockerd post-stop TimeoutSec=0 @@ -27,5 +31,8 @@ LimitCORE=infinity # Only systemd 226 and above support this option. TasksMax=infinity +# set delegate yes so that systemd does not reset the cgroups of docker containers +Delegate=yes + [Install] WantedBy=multi-user.target