From d5979915cfcfe5cf971b00158d4d004662f50b62 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 9 Jul 2014 00:07:35 -0700 Subject: [PATCH] README: Use variable for volume container name * Use a variable for the volume container name to simplify my life. * I can set the variable and then copy/paste from the README. --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 046a1d1..cb39a3e 100644 --- a/README.md +++ b/README.md @@ -4,26 +4,26 @@ OpenVPN server in a Docker container complete with an EasyRSA PKI CA. ## Quick Start -* Create the `openvpn-data` volume container +* Create the `$OVPN_DATA` volume container, i.e. `OVPN_DATA="ovpn-data"` - docker run --name openvpn-data -v /etc/openvpn busybox + docker run --name $OVPN_DATA -v /etc/openvpn busybox -* Initalize the `openvpn-data` container that will hold the configuration files and certificates +* Initalize the `$OVPN_DATA` container that will hold the configuration files and certificates - docker run --volumes-from openvpn-data kylemanna/openvpn ovpn_genconfig -u udp://VPN.SERVERNAME.COM:1194 - docker run --volumes-from openvpn-data -it kylemanna/openvpn ovpn_initpki + docker run --volumes-from $OVPN_DATA kylemanna/openvpn ovpn_genconfig -u udp://VPN.SERVERNAME.COM:1194 + docker run --volumes-from $OVPN_DATA -it kylemanna/openvpn ovpn_initpki * Start OpenVPN server process - docker run --volumes-from openvpn-data -d -p 1194:1194/udp --privileged kylemanna/openvpn + docker run --volumes-from $OVPN_DATA -d -p 1194:1194/udp --privileged kylemanna/openvpn * Generate a client certificate without a passphrase - docker run --volumes-from openvpn-data --rm -it kylemanna/openvpn easyrsa build-client-full CLIENTNAME nopass + docker run --volumes-from $OVPN_DATA --rm -it kylemanna/openvpn easyrsa build-client-full CLIENTNAME nopass * Retrieve the client configuration with embedded certificates - docker run --volumes-from openvpn-data --rm kylemanna/openvpn ovpn_getclient CLIENTNAME > CLIENTNAME.ovpn + docker run --volumes-from $OVPN_DATA --rm kylemanna/openvpn ovpn_getclient CLIENTNAME > CLIENTNAME.ovpn ## How Does It Work?