Issue with DNS in container

I found 3 related posts.
permission error:

iptables SNAT:

systemd-resolved conflict with ifupdown:

linux mint is based on ubuntu, so I guess third post may be your solution.