aboutsummaryrefslogtreecommitdiffstats
path: root/community/docker/docker-openrc-busybox-ash.patch
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2017-04-06 07:26:44 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-06 10:48:21 +0000
commit3e3810b6634d018ec9daf5fec4fcf3f8762841e0 (patch)
treedd74e10f93f12cfb1d501be5686dee2459678077 /community/docker/docker-openrc-busybox-ash.patch
parentfac4c1fd301274b4b61145e3c1e7e0dba725d9ec (diff)
downloadaports-3e3810b6634d018ec9daf5fec4fcf3f8762841e0.tar.gz
aports-3e3810b6634d018ec9daf5fec4fcf3f8762841e0.tar.bz2
aports-3e3810b6634d018ec9daf5fec4fcf3f8762841e0.tar.xz
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: https://github.com/docker/docker/commit/428d7337e808ec5f4dba1b0aceda002f295cc320 https://github.com/docker/docker/commit/8db61095a3d0bcb0733580734ba5d54bc27a614d
Diffstat (limited to 'community/docker/docker-openrc-busybox-ash.patch')
-rw-r--r--community/docker/docker-openrc-busybox-ash.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/docker/docker-openrc-busybox-ash.patch b/community/docker/docker-openrc-busybox-ash.patch
new file mode 100644
index 0000000000..57ff7ed921
--- /dev/null
+++ b/community/docker/docker-openrc-busybox-ash.patch
@@ -0,0 +1,11 @@
+--- 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
+ }