-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpm: patch RLIMIT_NOFILE for EL 7 systems
RLIMIT_NOFILE defaults to an unusable value on EL 7 systems, but more modern systems have sane defaults. As such, patch the systemd unit only on EL 7 systems to ensure correct behaviour. Signed-off-by: Bjorn Neergaard <[email protected]>
- Loading branch information
1 parent
022ee4a
commit ea716e3
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git i/contrib/init/systemd/docker.service w/contrib/init/systemd/docker.service | ||
index d8c7867057..b73ecf7363 100644 | ||
--- i/contrib/init/systemd/docker.service | ||
+++ w/contrib/init/systemd/docker.service | ||
@@ -30,6 +30,10 @@ StartLimitInterval=60s | ||
# in the kernel. We recommend using cgroups to do container-local accounting. | ||
LimitNPROC=infinity | ||
LimitCORE=infinity | ||
+# Older systemd versions default to a LimitNOFILE of 1024:1024, which is insufficient for many | ||
+# applications including dockerd itself and will be inherited. Raise the hard limit, while | ||
+# preserving the soft limit for select(2). | ||
+LimitNOFILE=1024:524288 | ||
|
||
# Comment TasksMax if your systemd version does not support it. | ||
# Only systemd 226 and above support this option. |