Docker Container Using Specific Nic
Does anyone know how I can create a container in host networking mode so that it only uses a specific NIC on a host with multiple NICs?
Thanks.
Sort by:
Best
Open comment sort options
Comments Section
Create a network that uses that nic. Look into mac-vlan oder ip-vlan networks and assign your container to that network.
https://docs.docker.com/network/
https://docs.docker.com/network/network-tutorial-macvlan/