aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/install-docker.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/install-docker.sh b/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/install-docker.sh
index 541bda4..272a54d 100644
--- a/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/install-docker.sh
+++ b/dcae-controller-core/dcae-controller-core-utils/src/main/server/bin/install-docker.sh
@@ -86,6 +86,13 @@ if [ ! -d /home/ubuntu/.docker ]; then
mkdir -p /home/ubuntu/.docker || _fatal "Could not create /home/ubuntu/.docker dir"
fi
+# handle MTU issues. The NIC on the VM may use less than 1500
+
+MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1)
+FILE1=/etc/default/docker
+echo DOCKER_OPTS=\"\$DOCKER_OPTS --mtu=$MTU\" >> $FILE1
+
+
#
# Start Docker
#