Skip to content

Commit f4351bb

Browse files
authored
Merge pull request #216 from peterrus/patch-1
using run instead of exec
2 parents 7627f8e + 14c45f4 commit f4351bb

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)