Docker Community Forums

Share and learn in the Docker community.

Conainers not reachable on local network using macvlan on fedora 31

I have docker running on fedora 31 with all but one issue.

I cannot get macvlan to work as expected. Here is what I am doing and no matter what I cannot get to the nginx web page. I have tried to set the eno1 to promiscuous mode, no go. firewalld is disabled and stopped. The wierd thing is that when I enable container to host communication I can curl http://192.168.1.212 without issue but still nothing outside the server can connect to it. Any ideas?

docker network create -d macvlan --subnet=192.168.1.0/24 --gateway=192.168.1.1 -o parent=eno1 my_macvlan

ifconfig eno1

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.139 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ddd1:306e:6382:5f8e prefixlen 64 scopeid 0x20
ether 98:90:96:cf:6d:46 txqueuelen 1000 (Ethernet)
RX packets 25565 bytes 9003702 (8.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4478 bytes 1017093 (993.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 20 memory 0xf7c00000-f7c20000

docker run --net=my_macvlan --ip=192.168.1.212 nginx