[minikube start] can't use existing Docker network if ipv6 is enabled
Author: justenwalkerCreated Aug 27, 2025Updated Sep 30, 2026
Labelskind/bug
What Happened?
There is a parse error in the network inspect output that make minikube unable to find a network by name. This is because, the custom format smashes all of the CIDRs/Gateways together into a single string.
In pkg/drivers/kic/oci/network_create.go:199
A network will have two subnets, one for ipv4 and one for ipv6 in the inspect output; which
[
{
"Name": "compose-network",
"Id": "bb6d83dd5e147f30135575028e3fae93d25eca3a11938bc6cefc7d524acb80af",
"Created": "2025-08-27T10:56:29.601742405-04:00",
"Scope": "local",
"Driver": "bridge",
"EnableIPv4": true,
"EnableIPv6": true,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "192.168.97.0/24",
"Gateway": "192.168.97.1"
},
{
"Subnet": "fd07:b51a:cc66:d000::/64",
"Gateway": "fd07:b51a:cc66:d000::1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"54e9fd780558437e4ce7ea5b008ca09b728677fd855eade97f3e1c3679ad6b57": {
"Name": "orbstack-compose-test-ubuntu-1",
"EndpointID": "ee53bcf189204fa2cb61f20d9c56d695dcbb8ccb888bacbaab86ae9fe2ba9991",
"MacAddress": "d2:1b:4e:46:c9:fb",
"IPv4Address": "192.168.97.2/24",
"IPv6Address": "fd07:b51a:cc66:d000::2/64"
}
},
"Options": {
"com.docker.network.enable_ipv6": "true"
},
"Labels": {
"com.docker.compose.config-hash": "4736088b65ccd4a5612a65442db67c4e191e5b5e588b855ef9a4f05f4fef3c71",
"com.docker.compose.network": "compose-network",
"com.docker.compose.project": "orbstack-compose-test",
"com.docker.compose.version": "2.39.2"
}
}
]The network inspection format creates this output:
{"Name": "compose-network","Driver": "bridge","Subnet": "192.168.97.0/24fd07:b51a:cc66:d000::/64","Gateway": "192.168.97.1fd07:b51a:cc66:d000::1","MTU": 0, "ContainerIPs": ["192.168.97.2/24"]}Which the Gateway and Subnet strings do not parse correctly as an IP Address. Since this fails, minikube attempts to create the network, but it fails since it already exists.
W0827 13:34:53.405376 47555 network_create.go:85] failed to get mtu information from the docker's default network "bridge": parse subnet for bridge: invalid CIDR address: 192.168.215.0/24fd07:b51a:cc66:1::/64minikube start -p orbstack-test --driver=docker --network compose-network --static-ip 192.168.97.100Attach the log file
Operating System
macOS (Default)
Driver
Docker
Source: kubernetes/minikube