Making a docker container a part of a vpn

I am trying to connect my docker container to a vpn in order to access the machines in that vpn. I wonder how could this be done.

I can connect the host machine (machine on which docker container is hosted) to the vpn using the vpn client provided by the cloud provider.

  • vuejs application does not run with dockerized npm
  • Commit a mysql docker image does not embed a new database
  • Docker php with composer PSR-4
  • Docker-Compose: is it possible to force IP addresses on different containers?
  • How does Vagrant restart docker containers on bootup?
  • Running testng suite on selenium grid and docker
  • The same vpn client does not work on the docker container. Can someone please help me in finding out the way to get the docker container to become a part of the vpn.

    The vpn server is publicly accessible. I need the docker container to become a part of the VPN just like how the machine hosting the docker container can become a part of the vpn.

    I have multiple docker containers on my host machine and each container should be a part of a separate vpn. Can this be achieved anyway?

  • “certificate verify failed” when connecting docker-compose to IBM Container Cloud
  • docker push keeps pushing
  • Can I use fig to initialise a persisting database in docker?
  • Mounted host file becomes a directory inside a docker container
  • Are there docker remote api command line client's
  • Dockerization of node js application
  • One Solution collect form web for “Making a docker container a part of a vpn”

    Kontena has built-in VPN access, so if you want an easy solution I suggest you to check it out

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.