Run OpenVPN in a Docker container. The Docker image is updated weekly.
Note:
chrisx8/openvpn-alpine
on Docker Hub is DEPRECATED. While it is still updated regularly, it will be removed in the near future.
Please switch toghcr.io/chrisx8/openvpn-alpine
as soon as possible.
- This will start OpenVPN with
--config server.conf
. If you want to use custom parameters, see Use custom parameters. - Replace
<OPENVPN_DATA>
with name of Docker volume or absolute path to OpenVPN config directory
docker run -v <OPENVPN_DATA>:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN ghcr.io/chrisx8/openvpn-alpine
- Replace
<OPENVPN_DATA>
with name of Docker volume or absolute path to OpenVPN config directory - Replace
<PARAM>
with OpenVPN parameters
docker run -v <OPENVPN_DATA>:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN ghcr.io/chrisx8/openvpn-alpine ovpn-start <PARAM>