Fixing docker DIB element for setting correct MTU

* docker0 interface in ubuntu had incorrect MTU value
 * Older docker (< v1.1) automatically infer MTU value based
 on host. But since 1.1 docker doesn't do this. It
 sets MTU value 1500 which causes some network problems
 (especially with SSL/TLS/HTTPS) and apps like
 HTTPdSite and NginXSite couldn't clone the repo.

Closes-Bug: 1608836

Change-Id: I62482bce9ad4f45b7ea2d1d4db77d009c7191f7b
This commit is contained in:
Nikolay Mahotkin 2016-08-26 14:48:34 +03:00
parent 05f017fd94
commit a6032decba
2 changed files with 2 additions and 2 deletions

View File

@ -5,4 +5,4 @@ set -eu
install-packages curl
curl -sSL https://get.docker.com/ | sh
echo 'DOCKER_OPTS="--bip=172.31.0.1/16 --fixed-cidr=172.31.0.0/16"' >> /etc/default/docker
echo 'DOCKER_OPTS="--bip=172.31.0.1/16 --fixed-cidr=172.31.0.0/16 --mtu=1450"' >> /etc/default/docker

View File

@ -5,4 +5,4 @@ set -eu
install-packages curl
curl -sSL https://get.docker.com/ | sh
echo 'DOCKER_OPTS="--bip=172.31.0.1/16 --fixed-cidr=172.31.0.0/16"' >> /etc/default/docker
echo 'DOCKER_OPTS="--bip=172.31.0.1/16 --fixed-cidr=172.31.0.0/16 --mtu=1450"' >> /etc/default/docker