Ubuntu 5.3.0-51-generic
Docker version 19.03.6 (Docker CE)
I have two network adapters with network interfaces Device0 and Device1 that i want to connect to Container0, and Container1.
Each container needs to have its own ip-address, followed by the other, say 172.16.0.10 to 172.16.0.11
I've read that it could be good to use the macvlan utility.
Using the following code, where i [0,1] I try to create 2 different macvlans, connecting said devices:
docker network create -d macvlan \
--subnet=172.16.0.1$i/24 \
-o parent=Device$i \
macvlan_$counter
The code creates a first network but fails on the second, due to overlaps in address space
fd351775c70e1a3718e78bbed07e8f7a577a203f8526d2f80dad1b3e8f5f6482
Error response from daemon: Pool overlaps with other one on this address space
Any idea how to work around this problem?