mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
6a541e37c7
commit
21578530d7
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ Delegate=yes
|
||||||
|
|
||||||
# kill only the docker process, not all processes in the cgroup
|
# kill only the docker process, not all processes in the cgroup
|
||||||
KillMode=process
|
KillMode=process
|
||||||
|
OOMScoreAdjust=-500
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue