You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+21-11Lines changed: 21 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,8 @@ Here are some example snippets to help you get started creating a container.
50
50
docker create \
51
51
--name=openvpn-as \
52
52
--cap-add=NET_ADMIN \
53
-
-e PUID=1001 \
54
-
-e PGID=1001 \
53
+
-e PUID=1000 \
54
+
-e PGID=1000 \
55
55
-e TZ=Europe/London \
56
56
-e INTERFACE=eth0 `#optional` \
57
57
-p 943:943 \
@@ -77,8 +77,8 @@ services:
77
77
cap_add:
78
78
- NET_ADMIN
79
79
environment:
80
-
- PUID=1001
81
-
- PGID=1001
80
+
- PUID=1000
81
+
- PGID=1000
82
82
- TZ=Europe/London
83
83
- INTERFACE=eth0 #optional
84
84
volumes:
@@ -87,7 +87,6 @@ services:
87
87
- 943:943
88
88
- 9443:9443
89
89
- 1194:1194/udp
90
-
mem_limit: 4096m
91
90
restart: unless-stopped
92
91
```
93
92
@@ -100,8 +99,8 @@ Container images are configured using parameters passed at runtime (such as thos
100
99
|`-p 943`| Admin GUI port. |
101
100
|`-p 9443`| TCP port. |
102
101
|`-p 1194/udp`| UDP port. |
103
-
|`-e PUID=1001`| for UserID - see below for explanation |
104
-
|`-e PGID=1001`| for GroupID - see below for explanation |
102
+
|`-e PUID=1000`| for UserID - see below for explanation |
103
+
|`-e PGID=1000`| for GroupID - see below for explanation |
105
104
|`-e TZ=Europe/London`| Specify a timezone to use EG Europe/London. |
106
105
|`-e INTERFACE=eth0`| With bridge networking, leave it as eth0 (or don't include at all), if host or macvlan, set it to your host's network interface, found by running `ifconfig`|
107
106
|`-v /config`| Where openvpn-as should store configuration files. |
@@ -112,11 +111,11 @@ When using volumes (`-v` flags) permissions issues can arise between the host OS
112
111
113
112
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
114
113
115
-
In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as below:
114
+
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
0 commit comments