Docker Community Forums

Share and learn in the Docker community.

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


(Nigel Brown) #1

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?


(Boistordu) #2

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 :
https://docs.docker.com/network/macvlan/#bridge-mode

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”