소스 검색

Add NOFILE and NPROC ulimit settings to the SysV init script

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Tianon Gravi 11 년 전
부모
커밋
bae79c3e72
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      contrib/init/sysvinit-debian/docker

+ 3 - 0
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 \