Docker Community Forums

Share and learn in the Docker community.

Docker on MacOS - Containers don't use VPN connection of host

I have a docker image that runs a PHP application, which needs to access servers that are in a VPN. I am using openVPN to connect to the VPN on my host which is MacOS. When the container tries to connect to the servers it cannot connect to the servers even though host can connect.

Is it possible to configure the containers to communicate over the hosts openVPN connection?


Same problem here with OpenVPN on OSX.