Merge pull request #6814 from tianon/more-init-ulimit

Add NOFILE and NPROC ulimit settings to OpenRC and SysVinit
This commit is contained in:
Tianon Gravi 2014-07-02 10:08:11 -06:00
commit 292483531f
2 changed files with 6 additions and 0 deletions

View file

@ -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" \

View file

@ -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 \