aports/community/docker/docker-openrc-busybox-ash.patch
Henrik Riomar 3e3810b663 community/docker: ulimit -u to -p
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
2017-04-06 10:48:21 +00:00

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
}