aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-05-18 18:34:11 -0400
committerLusheng Ji <lji@research.att.com>2017-05-18 18:34:11 -0400
commitd74bf5e1a6e2c14cd9a4983672516bad0a253072 (patch)
tree1c0443a58a7ba36f00a4bbd4e94f62310fa12704
parente860588e11665600cad078f1a9b407599430e156 (diff)
MTU when not set
Change-Id: I8e143142ca828e04ce567e6e607b5e19f43f6066 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xdeploy.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index b1f9ebd..33a95e0 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -33,5 +33,9 @@ if ls __* 1> /dev/null 2>&1; then
done
fi
+if [ -z "$MTU" ]; then
+ export MTU=$(ifconfig docker0 |grep MTU |sed -e 's/.*MTU://' -e 's/\s.*$//')
+fi
+
echo "starting docker operations"
${DOCKER_COMPOSE_EXE} up -d