|
@@ -140,7 +140,7 @@ func TestDaemonHostGatewayIP(t *testing.T) {
|
|
|
// Verify the IP in /etc/hosts is same as host-gateway-ip
|
|
|
d := daemon.New(t)
|
|
|
// Verify the IP in /etc/hosts is same as the default bridge's IP
|
|
|
- d.StartWithBusybox(t)
|
|
|
+ d.StartWithBusybox(t, "--iptables=false")
|
|
|
c := d.NewClientT(t)
|
|
|
ctx := context.Background()
|
|
|
cID := container.Run(ctx, t, c,
|
|
@@ -157,7 +157,7 @@ func TestDaemonHostGatewayIP(t *testing.T) {
|
|
|
d.Stop(t)
|
|
|
|
|
|
// Verify the IP in /etc/hosts is same as host-gateway-ip
|
|
|
- d.StartWithBusybox(t, "--host-gateway-ip=6.7.8.9")
|
|
|
+ d.StartWithBusybox(t, "--iptables=false", "--host-gateway-ip=6.7.8.9")
|
|
|
cID = container.Run(ctx, t, c,
|
|
|
container.WithExtraHost("host.docker.internal:host-gateway"),
|
|
|
)
|
|
@@ -208,7 +208,7 @@ func TestRestartDaemonWithRestartingContainer(t *testing.T) {
|
|
|
c.HasBeenStartedBefore = true
|
|
|
})
|
|
|
|
|
|
- d.Start(t)
|
|
|
+ d.Start(t, "--iptables=false")
|
|
|
|
|
|
ctxTimeout, cancel := context.WithTimeout(ctx, 30*time.Second)
|
|
|
defer cancel()
|
|
@@ -256,7 +256,7 @@ func TestHardRestartWhenContainerIsRunning(t *testing.T) {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- d.Start(t)
|
|
|
+ d.Start(t, "--iptables=false")
|
|
|
|
|
|
t.Run("RestartPolicy=none", func(t *testing.T) {
|
|
|
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|