integration/TestContainerShmNoLeak: use --iptables=false

As mentioned in commit 9e31938, test cases that use t.Parallel()
and start a docker daemon might step on each other toes as they
try to configure iptables during startup, resulting in flaky tests.

To avoid this, --iptables=false should be used while starting daemon.

Fixes: eaa5192856c1 ("Make container resource mounts unbindable")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit c125e10a0486623ba3badebf974ea6e582373151)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Kir Kolyshkin
2018-04-17 17:29:43 -07:00
committed by Sebastiaan van Stijn
parent f03b3e54d7
commit 612f972789
@@ -30,7 +30,7 @@ func TestContainerShmNoLeak(t *testing.T) {
if err != nil {
t.Fatal(err)
}
d.StartWithBusybox(t)
d.StartWithBusybox(t, "--iptables=false")
defer d.Stop(t)
ctx := context.Background()