I have one simple server with a bunch of docker containers running on an ipvlan network, which uses 172.22.0.0/16 as it's net. In there is a gateway and everything is working great.
I need to run one container in a different vlan, so I created an interface called "vlan41" on my host and I'm trying to create a second ipvlan network on it :
# docker network create -d ipvlan --subnet=172.19.41.0/24 --gateway=172.19.41.254 --ip-range=172.19.41.16/28 -o ipvlan_mode=l2 -o parent=vlan41 mynet Error response from daemon: failed to allocate gateway (172.19.41.254): Address already in use
I've tried everything I could think of, I cannot make it work. I thought it might be a poor error message caused by the fact that the vlan is sharing the same raw device as the existing ipvlan network, but changing the mac address of the vlan doesn't seem to solve it.
Any way to make this work ? Thanks