mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 22:52:40 +01:00
There is no -u flag to ulimit provided by Busybox ash, change
to -p in docker.init
bash ulimit:
-n The maximum number of open file descriptors
-u The maximum number of processes available to a single user
ash ulimit (from Busybox):
{ RLIMIT_NOFILE, 0, 'n', "file descriptors" },
{ RLIMIT_NPROC, 0, 'p', "processes" },
References:
428d7337e8
8db61095a3
12 lines
320 B
Diff
12 lines
320 B
Diff
--- a/contrib/init/openrc/docker.initd
|
|
+++ b/contrib/init/openrc/docker.initd
|
|
@@ -16,7 +16,7 @@
|
|
|
|
# Having non-zero limits causes performance problems due to accounting overhead
|
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
|
- ulimit -u unlimited
|
|
+ ulimit -p unlimited
|
|
|
|
return 0
|
|
}
|