It’s VERY easy to setup your own VPN with docker. This guide assumes you’re ok with operating a linux box but know nothing about docker. I’ll break it down into easy steps:
Install docker on the host:
$ curl -sSL https://get.docker.com/ | sh
Make directory for docker volume:
$ mkdir $HOME/openvpn-data
Simply run this:
$ docker run -d --cap-add=NET_ADMIN -v $HOME/openvpn-date:/etc/openvpn -p 5222:443/tcp -p 443:443/tcp jpetazzo/dockvpn
Docker will take about a minute to do its magic and then return you to the command line. To see that it is working do this:
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
147ae44749ae jpetazzo/dockvpn "/bin/sh -c run" 23 hours ago Up 23 hours 0.0.0.0:443->443/tcp, 1194/udp, 8080/tcp, 0.0.0.0:5222->443/tcp stupefied_mcnulty
VPN server and client config will be available at $HOME/openvpn-data
Small typo, should be $openvpn-data
docker run -d --cap-add=NET_ADMIN -v $HOME/openvpn-date:/etc/openvpn -p 5222:443/tcp -p 443:443/tcp jpetazzo/dockvpn