Skip to content

Commit 2157853

Browse files
committed
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 <[email protected]>
1 parent 6a541e3 commit 2157853

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

contrib/init/systemd/docker.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Delegate=yes
4242

4343
# kill only the docker process, not all processes in the cgroup
4444
KillMode=process
45+
OOMScoreAdjust=-500
4546

4647
[Install]
4748
WantedBy=multi-user.target

0 commit comments

Comments
 (0)