From 9bf1948e3fb62641ac17745870f5064353f345db Mon Sep 17 00:00:00 2001 From: unclejack Date: Thu, 20 Jun 2013 20:30:28 +0300 Subject: [PATCH] enable IPv4 forwarding --- .../coreos-overlay/app-emulation/docker/files/docker.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service index 6f28c1ef31..c260461cb5 100644 --- a/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service +++ b/sdk_container/src/third_party/coreos-overlay/app-emulation/docker/files/docker.service @@ -1,6 +1,9 @@ [Service] Type=forking ExecStartPre=/bin/mount --make-rprivate / +# Enable forwarding to allow NAT to work +# TODO: Move this to sysctl.conf +ExecStartPre=/sbin/sysctl -w net.ipv4.ip_forward=1 # HACK: for some reason docker is crashing when exiting a container when being # supervised by systemd. Fork out for now. Real solution should be: