Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Pritunl as a Docker container

Just build it or pull it from johnae/docker-pritunl. Run it something like this:

docker run -d -privileged -p 1194:1194/udp -p 1194:1194/tcp -p 9700:9700/tcp johnae/docker-pritunl

If you have a mongodb somewhere you'd like to use for this rather than starting the built-in one you can
do so through the MONGODB_URI env var like this:

docker run -d -privileged -e MONGODB_URI=mongodb://some-mongo-host:27017/pritunl -p 1194:1194/udp -p 1194:1194/tcp -p 9700:9700/tcp johnae/docker-pritunl

Then you can login to your pritunl web ui at https://docker-host-address:9700
Username: admin Password: admin

I would suggest using docker data volume for persistent storage of pritunl data, something like this:

## create the data volume
docker run -v /var/lib/pritunl --name=pritunl-data busybox
## use the data volume when starting pritunl
docker run --name pritunl --privileged --volumes-from=pritunl-data -e MONGODB_URI=mongodb://some-mongo-host:27017/pritunl -p 1194:1194/udp -p 1194:1194/tcp -p 9700:9700/tcp -e SERVICE_NAME=%H -e SERVICE_1194_ID=pritunl-vpn -e SERVICE_9700_ID=pritunl-web johnae/pritunl

Then you're on your own, but take a look at http://pritunl.com or https://github.com/pritunl/pritunl

Docker Pull Command
Owner
johnae
Source Repository

Comments (1)
kilo
a year ago

This image is broken:

[undefined][2016-05-26 20:38:12,101][ERROR] Error connecting to mongodb server
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pritunl/setup/server.py", line 187, in setup_server
db_ver_int = utils.get_db_ver_int()
File "/usr/lib/python2.7/dist-packages/pritunl/utils/misc.py", line 106, in get_db_ver_int
version = get_db_ver()
File "/usr/lib/python2.7/dist-packages/pritunl/utils/misc.py", line 89, in get_db_ver
connectTimeoutMS=MONGO_CONNECT_TIMEOUT)
File "/usr/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 369, in init
raise ConnectionFailure(str(e))
ConnectionFailure: [Errno 111] Connection refused
[undefined][2016-05-26 20:38:42,159][ERROR] Error connecting to mongodb server
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pritunl/setup/server.py", line 187, in setup_server
db_ver_int = utils.get_db_ver_int()
File "/usr/lib/python2.7/dist-packages/pritunl/utils/misc.py", line 106, in get_db_ver_int
version = get_db_ver()
File "/usr/lib/python2.7/dist-packages/pritunl/utils/misc.py", line 89, in get_db_ver
connectTimeoutMS=MONGO_CONNECT_TIMEOUT)
File "/usr/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 369, in init
raise ConnectionFailure(str(e))
ConnectionFailure: [Errno 111] Connection refused