https://github.com/jsloan117/docker-openvpn-client
Container image with OpenVPN Client and VPN providers
https://github.com/jsloan117/docker-openvpn-client
dockerimage openvpn
Last synced: 2 months ago
JSON representation
Container image with OpenVPN Client and VPN providers
- Host: GitHub
- URL: https://github.com/jsloan117/docker-openvpn-client
- Owner: jsloan117
- License: gpl-3.0
- Created: 2018-11-09T21:06:40.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-01-27T23:08:35.000Z (2 months ago)
- Last Synced: 2026-01-28T12:30:14.438Z (2 months ago)
- Topics: dockerimage, openvpn
- Language: Shell
- Homepage:
- Size: 16.5 MB
- Stars: 8
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Support: docs/supported-providers.md
Awesome Lists containing this project
README
# docker-openvpn-client

[](https://github.com/jsloan117/docker-openvpn-client/actions/workflows/images.yml)
[](https://img.shields.io/docker/pulls/jsloan117/docker-openvpn-client.svg)
The image provides OpenVPN or Wireguard as a VPN client, with OpenVPN having access to multiple providers.
## Getting started
---
Below is a quick way to get up and running with either OpenVPN or Wireguard. For more details, see the complete [documentation](http://jsloan117.github.io/docker-openvpn-client).
```bash
# OpenVPN client
docker run --cap-add=NET_ADMIN -d --name openvpn_client \
-e OPENVPN_PROVIDER='vyprvpn' \
-e OPENVPN_CONFIG='USA - Austin-256' \
-e OPENVPN_USERNAME='user' \
-e OPENVPN_PASSWORD='password' \
-v /etc/localtime:/etc/localtime:ro \
jsloan117/docker-openvpn-client
```
```bash
# Wireguard client
docker run --cap-add=NET_ADMIN -d --name wg_client \
-e "VPN_CLIENT=wireguard" \
--sysctl net.ipv4.conf.all.src_valid_mark=1 \
-v ~/wg0.conf:/etc/wireguard/wg0.conf \
-v /etc/localtime:/etc/localtime:ro \
jsloan117/docker-openvpn-client
```
## Credit
---
Thank you [Haugene](https://github.com/haugene) and all contributors for making a great image.
I initially based the image on [docker-transmission-openvpn](https://github.com/haugene/docker-transmission-openvpn). Their [documentation](https://haugene.github.io/docker-transmission-openvpn) may benefit you depending on your environment.