What is the docker network create --aux-address option used for?

The man page for docker network create says ‘Auxiliary ipv4 or ipv6 addresses used by network driver’. This isn’t very illuminating! Anyone have any ideas what it is used for?

1 Like

If you need to exclude IP addresses from being used in the Macvlan network, such as when a given IP address is already in use, use --aux-addresses :
Macvlan network driver | Docker Docs

then you put the name of the container and the address ip of the container mentionned like a router for example
aux-addresses:“router=172.18.0.1”