In the case of disabling IPAM --ipam-driver=null or a 3rd party IPAM driver sending an empty v4 slice will create a panic. docker network create -d (ipvlan||macvlan) --ipam-driver=null ipv currently triggers a panic.
Patching with:
// reject a null v4 network
if len(ipV4Data) == 0 || ipV4Data[0].Pool.String() == "0.0.0.0/0" {
return fmt.Errorf("ipv4 pool is empty")
}
Hmm, what if people want to use macvlan with Docker, but decide on IP addresses themselves?
Most helpful comment
Hmm, what if people want to use macvlan with Docker, but decide on IP addresses themselves?