Signed-off-by: John Howard <jhoward@microsoft.com>
| ... | ... |
@@ -283,6 +283,10 @@ func deleteAllNetworks() error {
|
| 283 | 283 |
if n.Name == "bridge" || n.Name == "none" || n.Name == "host" {
|
| 284 | 284 |
continue |
| 285 | 285 |
} |
| 286 |
+ if daemonPlatform == "windows" && strings.ToLower(n.Name) == "nat" {
|
|
| 287 |
+ // nat is a pre-defined network on Windows and cannot be removed |
|
| 288 |
+ continue |
|
| 289 |
+ } |
|
| 286 | 290 |
status, b, err := sockRequest("DELETE", "/networks/"+n.Name, nil)
|
| 287 | 291 |
if err != nil {
|
| 288 | 292 |
errors = append(errors, err.Error()) |