Adding hosts to container

Hi, I have a scenario where some containers need to resolve some private hostnames.
Usually, I’d solve that using a docker run --add-host parameter, but how can I solve that on portainer?

I also tried to map container’s /etc/hosts file to host’s /etc/hosts-container1, but it didn’t work.

Any help would be appreciated

Add the entries here when creating a container