Docker Community Forums

Share and learn in the Docker community.

Docker container try to access DataBase in VPN

I have an application in Docker container.
And i try to access external Database in VPN by this application (This database is not on docker). but its not allowed to connect.
I use docker compose

I think the issue here is the VPN

Any suggestion,

Note: Docker Run in windows.


Okay, just really was that simple as commented by larsks. I’m on linux, ip a gave me the docker0 interface, took that IP for database connection and everything works perfectly fine. Thank you.