mirror of
https://github.com/WeeJeWel/wg-easy.git
synced 2024-11-16 23:49:24 +08:00
19 lines
307 B
Bash
19 lines
307 B
Bash
|
docker run -d \
|
||
|
--name=wireguard \
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
--cap-add=NET_ADMIN \
|
||
|
--cap-add=SYS_MODULE \
|
||
|
-e PUID=1000 \
|
||
|
-e PGID=1000 \
|
||
|
-e TZ=Europe/London \
|
||
|
-p 51820:51820/udp \
|
||
|
-v config:/config \
|
||
|
-v modules:/lib/modules \
|
||
|
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
|
||
|
ghcr.io/linuxserver/wireguard
|