I have ~15 LXC containers each with netplan manually configured (including DNS). I recently installed Docker for the first time and immediately lost name resolution within all LXC containers. So from within an LXC:
ping 184.108.40.206 # works
ping google.com # ping: google.com: Temporary failure in name resolution
DNS works fine in Docker containers and host.