using run instead of exec

It is more in line with the other commands we run earlier. Shouldn't have any negative effects right?
This commit is contained in:
peterrus 2017-02-12 13:50:42 +01:00 committed by GitHub
parent 7627f8e9f9
commit 14c45f418c

View File

@ -48,15 +48,15 @@ docker-compose logs -f
```bash
export CLIENTNAME="your_client_name"
# with a passphrase (recommended)
docker-compose exec openvpn easyrsa build-client-full $CLIENTNAME
docker-compose run --rm openvpn easyrsa build-client-full $CLIENTNAME
# without a passphrase (not recommended)
docker-compose exec openvpn easyrsa build-client-full $CLIENTNAME nopass
docker-compose run --rm openvpn easyrsa build-client-full $CLIENTNAME nopass
```
* Retrieve the client configuration with embedded certificates
```bash
docker-compose exec openvpn ovpn_getclient $CLIENTNAME > $CLIENTNAME.ovpn
docker-compose run --rm openvpn ovpn_getclient $CLIENTNAME > $CLIENTNAME.ovpn
```
## Debugging Tips