M350 Series User Manual 191
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
Install Docker CE
sudo apt-get update
sudo apt-get install docker-ce
Install Docker compose
sudo apt-get install docker-compose
Install Pritunl Open VPN Server by docker compose
(1) Setup the basic environment by the following commands.
mkdir ~/pritunl
cd ~/pritunl
touch docker-compose.yml
(2) Copy and paste the following content to docker-compose.yml.
version: '2'
services:
pritunl:
image: jippi/pritunl
volumes:
- pritunl:/var/lib/pritunl
- mongo:/var/lib/mongodb
privileged: true
network_mode: "host"
ports:
- "1194:1194/tcp"
- "1194:1194/udp"
- "80:80/tcp"
- "443:443/tcp"