Docker running inside LXC container with Macvlan (dns in docker doesn't work) with static address

I have docker working fine within my lxc (which is using macvlan) and has an external static ip address. Everything coming INTO docker seems to work fine, but docker containers get NO dns. The LXC itself seems to get dns working fine, its just the “docker” containers that don’t seem to have it. They get the appropriate 1.1.1.1 server, but NO packets seem to return.

What kinds of things do I need to do? Since I am using MACVLAN all ‘incus’ firewall rules don’t apply.

Thomas

One of my containers DOES seem to work with exactly the same config….sadness.

Just noticed “forwarding” is disabled on the continer on NO workie. More to come.

that fixed it No forwarding was enabled on the container. If anyone else has this problem you NEED forwarding for docker dns to work!

1 Like