diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2020-10-05 18:52:35 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2020-10-05 20:08:26 +0200 |
commit | 21578530d7291f2e7bc0b90ace2f058df753a443 (patch) | |
tree | a63df601d7414d5f1f80af7275b411599d50963c /contrib | |
parent | 6a541e37c711b28e40d0465be0b690a6ebf21cac (diff) | |
download | docker-21578530d7291f2e7bc0b90ace2f058df753a443.tar.gz |
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 <github@gone.nl>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/init/systemd/docker.service | 1 |
1 files changed, 1 insertions, 0 deletions
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 |