Unneeded Docker init, Go entrypoint does it

This commit is contained in:
Quentin McGaw
2020-05-29 10:12:38 +00:00
parent 64e447b262
commit 6b81ed6bde
2 changed files with 1 additions and 4 deletions

View File

@@ -69,7 +69,6 @@
## Setup ## Setup
1. Requirements 1. Requirements
- *Ideally*, Docker 1.13, in order to have Docker API 1.25 which supports `init` (and, if you use docker-compose, docker-compose version 1.22.0)
- A VPN account with one of the service providers: - A VPN account with one of the service providers:
- Private Internet Access: **username** and **password** - Private Internet Access: **username** and **password**
- Mullvad: user ID ([sign up](https://mullvad.net/en/account/)) - Mullvad: user ID ([sign up](https://mullvad.net/en/account/))
@@ -92,7 +91,7 @@
1. Launch the container with: 1. Launch the container with:
```bash ```bash
docker run -d --init --name=pia --cap-add=NET_ADMIN \ docker run -d --name=pia --cap-add=NET_ADMIN \
-e REGION="CA Montreal" -e USER=js89ds7 -e PASSWORD=8fd9s239G \ -e REGION="CA Montreal" -e USER=js89ds7 -e PASSWORD=8fd9s239G \
qmcgaw/private-internet-access qmcgaw/private-internet-access
``` ```
@@ -295,7 +294,6 @@ There are various ways to achieve this, depending on your use case.
pia: pia:
image: qmcgaw/private-internet-access image: qmcgaw/private-internet-access
container_name: pia container_name: pia
init: true
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
environment: environment:

View File

@@ -6,7 +6,6 @@ services:
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
network_mode: bridge network_mode: bridge
init: true
ports: ports:
- 8888:8888/tcp # Tinyproxy - 8888:8888/tcp # Tinyproxy
- 8388:8388/tcp # Shadowsocks - 8388:8388/tcp # Shadowsocks