Skip to content

Commit dc81347

Browse files
committed
docs: Drop --privileged docker run flag
* Fix all the docs to not mention this flag.
1 parent 8931825 commit dc81347

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If you prefer to use `docker-compose` please refer to the [documentation](docs/d
6969

7070
* Create an environment variable with the name DEBUG and value of 1 to enable debug output (using "docker -e").
7171

72-
docker run -v $OVPN_DATA:/etc/openvpn -p 1194:1194/udp --privileged -e DEBUG=1 kylemanna/openvpn
72+
docker run -v $OVPN_DATA:/etc/openvpn -p 1194:1194/udp --cap-add=NET_ADMIN -e DEBUG=1 kylemanna/openvpn
7373

7474
* Test using a client that has openvpn installed correctly
7575

docs/advanced.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ The [`ovpn_genconfig`](/bin/ovpn_genconfig) script is intended for simple config
1717

1818
* Start the server with:
1919

20-
docker run -v $PWD:/etc/openvpn -d -p 1194:1194/udp --privileged kylemanna/openvpn
20+
docker run -v $PWD:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN kylemanna/openvpn

docs/tcp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ specified protocol, adjust the mapping appropriately:
2121
## Running a Second Fallback TCP Container
2222
Instead of choosing between UDP and TCP, you can use both. A single instance of OpenVPN can only listen for a single protocol on a single port, but this image makes it easy to run two instances simultaneously. After building, configuring, and starting a standard container listening for UDP traffic on 1194, you can start a second container listening for tcp traffic on port 443:
2323

24-
docker run -v $OVPN_DATA:/etc/openvpn --rm -p 443:1194/tcp --privileged kylemanna/openvpn ovpn_run --proto tcp
24+
docker run -v $OVPN_DATA:/etc/openvpn --rm -p 443:1194/tcp --cap-add=NET_ADMIN kylemanna/openvpn ovpn_run --proto tcp
2525

2626
`ovpn_run` will load all the values from the default config file, and `--proto tcp` will override the protocol setting.
2727

0 commit comments

Comments
 (0)