Good afternoon everyone. I started learning docker and I have a question. There is a simple python docker image with the psycopg2 library. I want to connect to a database on a server accessed via openvpn. as a result, there is a piece of python code and ovpn. what needs to be done for docker to see the host?
Thanks in advance for taking the time to answer such a stupid question.
I ran a simple docker image and when the script tries to connect, the error "psycopg2.OperationalError: could not translate host name "name_host" to address: Name or service not known" occurs