From 34cb5d0e0db0082a272a13ee70a333431327611e Mon Sep 17 00:00:00 2001 From: Carl Montanari <8515611+carlmontanari@users.noreply.github.com> Date: Mon, 30 Dec 2024 02:52:20 -0800 Subject: [PATCH] fix: regression for docker bridge gw check on darwin dind (#2364) --- runtime/docker/docker.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/docker/docker.go b/runtime/docker/docker.go index 15ccaddf6..3e450b2b4 100644 --- a/runtime/docker/docker.go +++ b/runtime/docker/docker.go @@ -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.