Most of the content from this post was migrated to our Docker Platform tutorial. Content left here will be getting gradually more and more outdated.
Encapsulating software within a container brings a lot of benefits, such as quicker deployment, easier development and - last but not least - isolation of your host system from the application.
In this blog post I will show you how to install and configure a VPN client directly inside a docker container without a need of installing anything on your host system.
Thanks to that other computers from a VPN network will have access only to that container and not to your host system!
Because a container has it's own VPN IPv6 network, you can also easily move that container to other hosts without changing anything in your system configuration.
If you want to connect your existing multi-container system over the internet, then using a separate Docker VPN container will be a better move.
We cover that topic in a blog post introducing Docker VPN sidecar container.
I will show you how to do that in a few easy steps...