How to issue a curl command from inside a container to a pod running inside minikube?

i try to issue a curl command via bash script from inside a container to one of the apps running inside my minikube but i get a "Could not resolve" host name error. Although I have added the ingress name to my etc/hosts file

Source: Docker Questions