Skip to content

Commit

Permalink
fix: regression for docker bridge gw check on darwin dind
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari authored and hellt committed Dec 30, 2024
1 parent 2a5343e commit 01859ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtime/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,13 @@ func getMgmtBridgeIPs(bridgeName string, netResource networkapi.Inspect) (string
}
}
}
return v4, v6, err

// didnt find any gateways, fallthrough to returning the error
if v4 == "" && v6 == "" {
return "", "", err
}

return v4, v6, nil
}

// postCreateNetActions performs additional actions after the network has been created.
Expand Down

0 comments on commit 01859ff

Please sign in to comment.