-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #968 from neersighted/rpm_rlimit_nofile
rpm: patch RLIMIT_NOFILE for EL 7 systems
- Loading branch information
Showing
3 changed files
with
24 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/engine/contrib/init/systemd/docker.service w/engine/contrib/init/systemd/docker.service | ||
index d8c7867057..b73ecf7363 100644 | ||
--- i/engine/contrib/init/systemd/docker.service | ||
+++ w/engine/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. |