A simple, easy to use Docker OpenVPN client that supports commercial OpenVPN providers and self-hosted OpenVPN servers. I wanted this image to be as small as possible, so no provider configuration files are included. You will need to provide them yourself.
Place your *.ovpn and auth files in /some/path/
. The auth file can be named anything, but should be formatted like this:
myCoolUsername
mySuperSecretPassword
Once your files are in place, run the container:
$ docker run --cap-add=NET_ADMIN -d --name openvpn_client \
-v /some/path:/config:rw \
-e OPENVPN_CONF=config.ovpn \
-e OPENVPN_AUTH=auth.txt \
-e OPENVPN_OPTS= \
ccmpbll/openvpn-client
Please feel free to pass on any suggestions or feedback.