How to set up containers with VPN client installed, each connecting to another VPN server?

For a project, I have to connect to more than one environment on the same server. That’s why I want to use containers. I will install VPN clients in each container and connect to different networks with these clients. When I will connect to devices in these networks, I will connect through these containers. Is it possible to do this? How is it done?

Hi,

Thanks for detailed explanation. But i need something else. I have more than 1 containers, each connected to different VPN servers. When I want to access a device which is located in VPN A’s network, I want to use connect device from host server through VPN A container. When I want to access a device which is located in VPN B’s network, I want to use connect device from host server through VPN B container. Is it possible?