Making a docker container a part of a vpn

2019-08-12 14:55发布

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.

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?

标签: docker
1条回答
女痞
2楼-- · 2019-08-12 15:42

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

查看更多
登录 后发表回答