项目作者: bertrandmartel

项目描述 :
A minimal OpenVpn docker image to be run with an already existing configuration
高级语言: Shell
项目地址: git://github.com/bertrandmartel/docker-openvpn.git
创建时间: 2016-09-13T10:43:23Z
项目社区:https://github.com/bertrandmartel/docker-openvpn

开源协议:MIT License

下载


OpenVpn minimal docker image

Build Status

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

Build image

  1. docker build -t openvpn .

Usage

  • store path to your configuration folder :
  1. VPN_CONFIG="config"
  • start openvpn :
  1. docker run -v $VPN_CONFIG:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN bertrandmartel/docker-openvpn

Docker-compose

  1. docker-compose up

Docker-cloud

  1. export USER_PATH=/home/bobby
  2. envsubst < stackfile-template.yml > stackfile.yml
  • revise your stackfile.yml file before creating/updating the stack :
  1. # create the stack :
  2. docker-cloud stack create --name openvpn -f stackfile.yml
  3. # or update :
  4. docker-cloud stack update -f stackfile.yml <uuid>
  • start/deploy :
  1. # start the stack :
  2. docker-cloud stack start <uuid>
  3. # or redeploy :
  4. docker-cloud stack redeploy <uuid>

Debug

  1. docker exec -it openvpn bash