Merge pull request #21785 from Microsoft/jjh/nodeletenat
Windows: integration-cli don't delete nat
This commit is contained in:
commit
c760ea3d93
1 changed files with 4 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue