TunGo server in Docker
1️⃣ Prepare the image
- 🐳 Official:
docker pull nlipatov/tungo:latest
-
🛠 Or build it yourself:
cd src/
docker buildx build -t nlipatov/tungo:latest .
2️⃣ Run the container
docker run -d \
--name tungo \
--restart always \
--network host \
--device /dev/net/tun \
--cap-add NET_ADMIN \
-e EnableUDP=true \
-e EnableTCP=false \
-v tungo_volume:/etc/tungo \
nlipatov/tungo:latest
3️⃣ Generate client config
docker exec tungo \
bash -c "cd /src && go build -o tungo && ./tungo s gen"
You can also use the container ID instead of its name.
📖 See Client setup for next steps.