How to prevent docker to add google DNS in /etc/resolv.conf

Hi,

Is there a way to prevent docker from adding google DNS entries in the file /etc/resolv.conf that is inside a container ?

On our Linux host OS, the /etc/resolv.conf file is empty, because we don’t use DNS on our infrastructure. If I understand correctly, docker adds google DNS inside resolv.conf when the resulting DNS list is empty. But what if we don’t want any DNS at all ?