Skip to content

Commit 14c45f4

Browse files
author
peterrus
authored
using run instead of exec
It is more in line with the other commands we run earlier. Shouldn't have any negative effects right?
1 parent 7627f8e commit 14c45f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docker-compose.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ docker-compose logs -f
4848
```bash
4949
export CLIENTNAME="your_client_name"
5050
# with a passphrase (recommended)
51-
docker-compose exec openvpn easyrsa build-client-full $CLIENTNAME
51+
docker-compose run --rm openvpn easyrsa build-client-full $CLIENTNAME
5252
# without a passphrase (not recommended)
53-
docker-compose exec openvpn easyrsa build-client-full $CLIENTNAME nopass
53+
docker-compose run --rm openvpn easyrsa build-client-full $CLIENTNAME nopass
5454
```
5555

5656
* Retrieve the client configuration with embedded certificates
5757

5858
```bash
59-
docker-compose exec openvpn ovpn_getclient $CLIENTNAME > $CLIENTNAME.ovpn
59+
docker-compose run --rm openvpn ovpn_getclient $CLIENTNAME > $CLIENTNAME.ovpn
6060
```
6161

6262
## Debugging Tips

0 commit comments

Comments
 (0)