diff --git a/pkg/drivers/kic/oci/network_create.go b/pkg/drivers/kic/oci/network_create.go index 5e5aaaff421b..cbdc1076e6ce 100644 --- a/pkg/drivers/kic/oci/network_create.go +++ b/pkg/drivers/kic/oci/network_create.go @@ -157,6 +157,9 @@ func tryCreateDockerNetwork(ociBin string, subnet *network.Parameters, mtu int, if strings.Contains(rr.Output(), "is being used by a network interface") { return nil, ErrNetworkGatewayTaken } + if strings.Contains(rr.Output(), "is already used on the host or by another config") { + return nil, ErrNetworkGatewayTaken + } return nil, fmt.Errorf("create %s network %s %s with gateway %s and MTU of %d: %w", ociBin, name, subnet.CIDR, subnet.Gateway, mtu, err) } return gateway, nil