github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/debian/patches/engine-systemd-service-after-containerd.patch (about) 1 Description: Order docker.service after containerd.service 2 Fixes proper shutdown of containers. 3 Origin: upstream, cherry-picked parts of https://github.com/moby/moby/pull/42373 4 and https://github.com/moby/moby/pull/42622 5 Bug-Debian: https://bugs.debian.org/989490 6 7 Index: docker/engine/contrib/init/systemd/docker.service 8 =================================================================== 9 --- docker.orig/engine/contrib/init/systemd/docker.service 10 +++ docker/engine/contrib/init/systemd/docker.service 11 @@ -1,8 +1,8 @@ 12 [Unit] 13 Description=Docker Application Container Engine 14 Documentation=https://docs.docker.com 15 -After=network-online.target docker.socket firewalld.service 16 -Wants=network-online.target 17 +After=network-online.target docker.socket firewalld.service containerd.service 18 +Wants=network-online.target containerd.service 19 Requires=docker.socket 20 21 [Service] 22 @@ -11,7 +11,7 @@ Type=notify 23 # exists and systemd currently does not support the cgroup feature set required 24 # for containers run by docker 25 EnvironmentFile=-/etc/default/docker 26 -ExecStart=/usr/sbin/dockerd -H fd:// $DOCKER_OPTS 27 +ExecStart=/usr/sbin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock $DOCKER_OPTS 28 ExecReload=/bin/kill -s HUP $MAINPID 29 LimitNOFILE=1048576 30 # Having non-zero Limit*s causes performance problems due to accounting overhead