Disable --ip-masq for vagrand.

pull/6/head
Dawn Chen 2014-10-16 12:09:31 -07:00
parent baf3bea79a
commit a8a036a9e6
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ ip link set dev ${DOCKER_BRIDGE} up
ovs-vsctl set Bridge ${OVS_SWITCH} stp_enable=true ovs-vsctl set Bridge ${OVS_SWITCH} stp_enable=true
# modify the docker service file such that it uses the kube docker bridge and not its own # modify the docker service file such that it uses the kube docker bridge and not its own
sed -ie "s/ExecStart=\/usr\/bin\/docker -d/ExecStart=\/usr\/bin\/docker -d -b=${DOCKER_BRIDGE} --iptables=false/g" /usr/lib/systemd/system/docker.service sed -ie "s/ExecStart=\/usr\/bin\/docker -d/ExecStart=\/usr\/bin\/docker -d -b=${DOCKER_BRIDGE} --iptables=false --ip-masq=false/g" /usr/lib/systemd/system/docker.service
systemctl daemon-reload systemctl daemon-reload
systemctl restart docker.service systemctl restart docker.service