I have setup 3 docker MacVLAN networks on 3 different VLAN devices on the 1 physical lan device.
docker network create -d macvlan -o parent=eno1.50 --subnet 10.10.50.0/24 --gateway 10.10.50.1 myvlan50
docker network create -d macvlan -o parent=eno1.80 --subnet 10.10.80.0/24 --gateway 10.10.80.1 myvlan80
docker network create -d macvlan -o parent=eno1.90 --subnet 10.10.90.0/24 --gateway 10.10.90.1 myvlan90
When I start my docker containers on the MACVLAN networks, DNS does not work!.
The /etc/resolv.conf
file within the docker container only has
nameserver 127.0.0.11
options ndots:0
I have tried adding a dns
entry within my docker-compose file but the dns still does not work and the /etc/resolv.conf does not pick the dns entry up.
I believe dns does work when I create a docker macvlan network on the physical network eno1
interface.