Browse Source

Add NOFILE and NPROC ulimit settings to the OpenRC init script

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
Tianon Gravi 11 năm trước cách đây
mục cha
commit
7abe70c0b1
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      contrib/init/openrc/docker.initd

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