From bae79c3e7285c170f97a0f7f331a48fb47f0f40e Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 2 Jul 2014 09:38:19 -0600 Subject: [PATCH] Add NOFILE and NPROC ulimit settings to the SysV init script Docker-DCO-1.1-Signed-off-by: Andrew Page (github: tianon) --- contrib/init/sysvinit-debian/docker | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/init/sysvinit-debian/docker b/contrib/init/sysvinit-debian/docker index a3b9353754..6250cae053 100755 --- a/contrib/init/sysvinit-debian/docker +++ b/contrib/init/sysvinit-debian/docker @@ -88,6 +88,9 @@ case "$1" in touch "$DOCKER_LOGFILE" chgrp docker "$DOCKER_LOGFILE" + ulimit -n 1048576 + ulimit -u 1048576 + log_begin_msg "Starting $DOCKER_DESC: $BASE" start-stop-daemon --start --background \ --no-close \