A minimal OpenVpn docker image to be run with an already existing configuration
949
A minimal OpenVpn docker image to be run with an already existing configuration
Place your configuraton /etc/openvpn directory in a local config directory. This configuration directory should contain openvpn.conf for your server/client configuration file
docker build -t openvpn .
VPN_CONFIG="config"
docker run -v $VPN_CONFIG:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN bertrandmartel/docker-openvpn
docker-compose up
export USER_PATH=/home/bobby
envsubst < stackfile-template.yml > stackfile.yml
stackfile.yml file before creating/updating the stack :# create the stack :
docker-cloud stack create --name openvpn -f stackfile.yml
# or update :
docker-cloud stack update -f stackfile.yml <uuid>
# start the stack :
docker-cloud stack start <uuid>
# or redeploy :
docker-cloud stack redeploy <uuid>
docker exec -it openvpn bash
Content type
Image
Digest
Size
4.8 MB
Last updated
over 9 years ago
docker pull bertrandmartel/docker-openvpn