Container not start when mounting file into if it presents inside container - Too many levels of symbolic links

I meant where does /etc/resolv.conf resolve to?

The normal way to do is is to use cloud-init, see How to get LXD containers get IP from the LAN with routed network

This way the container’s config isn’t tightly coupled to the host’s.