From 7c15233e4a29dd96802eca37e3643f34abbf7314 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 2 Jul 2014 09:36:57 -0600 Subject: [PATCH] Add NOFILE and NPROC ulimit settings to the OpenRC init script Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) Upstream-commit: 7abe70c0b1018729006fd5d614ada2dc67edb9b2 Component: engine --- components/engine/contrib/init/openrc/docker.initd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/engine/contrib/init/openrc/docker.initd b/components/engine/contrib/init/openrc/docker.initd index 2d79a73973..a9d21b1708 100755 --- a/components/engine/contrib/init/openrc/docker.initd +++ b/components/engine/contrib/init/openrc/docker.initd @@ -11,6 +11,9 @@ DOCKER_OPTS=${DOCKER_OPTS:-} start() { checkpath -f -m 0644 -o root:docker "$DOCKER_LOGFILE" + ulimit -n 1048576 + ulimit -u 1048576 + ebegin "Starting docker daemon" start-stop-daemon --start --background \ --exec "$DOCKER_BINARY" \