From 784a45372dd69607e2aee244dddc6e07998f4ae8 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 1 Jul 2015 15:13:36 +0300 Subject: [PATCH] Make the doupdatelimits script optional Without the `privileged` flag or the proper kernel capability, this command can fail the start of the container. With this change, we still print the error message, but don't fail container start. The downside of this command not running is a lower maximum connection count (128), which should be okay for most of our enterprise customers. --- conf/init/doupdatelimits.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/init/doupdatelimits.sh b/conf/init/doupdatelimits.sh index 603559de0..bdeb6ddec 100755 --- a/conf/init/doupdatelimits.sh +++ b/conf/init/doupdatelimits.sh @@ -2,4 +2,4 @@ set -e # Update the connection limit -sysctl -w net.core.somaxconn=1024 \ No newline at end of file +sysctl -w net.core.somaxconn=1024 || true \ No newline at end of file