diff --git a/integration-cli/docker_utils.go b/integration-cli/docker_utils.go index a7a692a43b1967b045a090602c8ece818a3f80ea..2760ee806d5b8e5a0e77f3fbbb693dc5f3448f59 100644 --- a/integration-cli/docker_utils.go +++ b/integration-cli/docker_utils.go @@ -283,6 +283,10 @@ func deleteAllNetworks() error { if n.Name == "bridge" || n.Name == "none" || n.Name == "host" { continue } + if daemonPlatform == "windows" && strings.ToLower(n.Name) == "nat" { + // nat is a pre-defined network on Windows and cannot be removed + continue + } status, b, err := sockRequest("DELETE", "/networks/"+n.Name, nil) if err != nil { errors = append(errors, err.Error())