From 21578530d7291f2e7bc0b90ace2f058df753a443 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 5 Oct 2020 18:52:35 +0200 Subject: [PATCH] systemd: set OOMScoreAdjust for dockerd dockerd currently sets the oom-score-adjust itself. This functionality was added when we did not yet run dockerd as a systemd service. Now that we do, it's better to instead have systemd handle this. Signed-off-by: Sebastiaan van Stijn --- contrib/init/systemd/docker.service | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index a120c29574..9c1d9e6d37 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -42,6 +42,7 @@ Delegate=yes # kill only the docker process, not all processes in the cgroup KillMode=process +OOMScoreAdjust=-500 [Install] WantedBy=multi-user.target