Overview
- Full name
docker.io/ngc7331/derper- Registry
- docker.io
- Namespace
- ngc7331
- Repository
- derper
- Cached tags
- 124
- Last synced
- 07/06/2026, 04:15 PM
Introduction
Tailscale DERP 中继服务器镜像,在 NAT 穿透失败时为 WireGuard 流量提供 TCP/UDP 转发,适合自建私有 DERP 节点降低延迟。
Details
ngc7331/derper 实现 Tailscale 兼容的 DERP(Designated Encrypted Relay for Packets)中继,当两端无法直连时经本节点加密转发。部署时需配置 -hostname 与 TLS 证书(或 -certmode manual),并在 Tailscale ACL 中注册 derpMap。与官方 DERP 相比可部署在境内或专网降低跨区延迟;生产应固定 tag、限制入站来源,并监控带宽与连接数。
快速启动
docker run -d --name derper \
-p 3478:3478/tcp -p 3478:3478/udp \
-e DERP_ADDR=:3478 \
docker.io/ngc7331/derper:latest \
-hostname derp.example.com
推荐实践
docker run -d --name derper \
--restart unless-stopped \
-p 3478:3478/tcp -p 3478:3478/udp \
-v /data/derper/certs:/app/certs \
docker.io/ngc7331/derper:v0.2.1 \
-hostname derp.internal.example.com \
-certmode manual \
-certdir /app/certs
核心参数说明
-p 3478:3478/tcp/udp— DERP 标准中继端口-hostname— 客户端连接使用的域名-certmode manual— 使用挂载证书而非自动 ACME-certdir /app/certs— TLS 证书目录--restart unless-stopped— 中继节点持续在线- 固定 tag — 与 Tailscale 客户端版本兼容
Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: derper
spec:
replicas: 1
selector:
matchLabels:
app: derper
template:
metadata:
labels:
app: derper
spec:
hostNetwork: true
containers:
- name: derper
image: docker.io/ngc7331/derper:v0.2.1
args:
- -hostname=derp.example.com
- -certmode=manual
- -certdir=/certs
ports:
- containerPort: 3478
protocol: TCP
- containerPort: 3478
protocol: UDP
volumeMounts:
- name: certs
mountPath: /certs
volumes:
- name: certs
secret:
secretName: derper-tls
---
apiVersion: v1
kind: Service
metadata:
name: derper
spec:
type: LoadBalancer
selector:
app: derper
ports:
- name: tcp
port: 3478
protocol: TCP
- name: udp
port: 3478
protocol: UDP
UDP 转发建议 hostNetwork 或 LoadBalancer;证书经 Secret 挂载,ACL 中更新 derpMap 节点地址。
Latest tags (20)
View all 124 tags →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/ngc7331/derper :latest | linux/amd64linux/arm64 | 2026/07/01 10:12 | 25.0 MB | sha256:c8a13522394c… | |||
docker.io/ngc7331/derper :1 | linux/amd64linux/arm64 | 2026/07/01 10:12 | 25.0 MB | sha256:c8a13522394c… | |||
docker.io/ngc7331/derper :1.98 | linux/amd64linux/arm64 | 2026/07/01 10:12 | 25.0 MB | sha256:c8a13522394c… | |||
docker.io/ngc7331/derper :1.98.8 | linux/amd64linux/arm64 | 2026/07/01 10:12 | 25.0 MB | sha256:c8a13522394c… | |||
docker.io/ngc7331/derper :latest-unsafe | linux/amd64linux/arm64 | 2026/07/01 10:10 | 25.0 MB | sha256:d494ce570e41… | |||
docker.io/ngc7331/derper :1-unsafe | linux/amd64linux/arm64 | 2026/07/01 10:10 | 25.0 MB | sha256:d494ce570e41… | |||
docker.io/ngc7331/derper :1.98-unsafe | linux/amd64linux/arm64 | 2026/07/01 10:10 | 25.0 MB | sha256:d494ce570e41… | |||
docker.io/ngc7331/derper :1.98.8-unsafe | linux/amd64linux/arm64 | 2026/07/01 10:10 | 25.0 MB | sha256:d494ce570e41… | |||
docker.io/ngc7331/derper :1.98.5 | linux/amd64linux/arm64 | 2026/06/22 20:26 | 25.0 MB | sha256:a6b61b03afca… | |||
docker.io/ngc7331/derper :1.98.5-unsafe | linux/amd64linux/arm64 | 2026/06/22 20:26 | 25.0 MB | sha256:57d2489a0341… | |||
docker.io/ngc7331/derper :1.98.3 | linux/amd64linux/arm64linux/riscv64 | 2026/05/22 10:15 | 24.6 MB | sha256:9700658de986… | |||
docker.io/ngc7331/derper :1.98.3-unsafe | linux/amd64linux/arm64linux/riscv64 | 2026/05/22 10:13 | 24.6 MB | sha256:ab2a7d6751a6… | |||
docker.io/ngc7331/derper :1.98.2-unsafe | linux/amd64linux/arm64linux/riscv64 | 2026/05/19 10:16 | 24.6 MB | sha256:18f24a4f04d5… | |||
docker.io/ngc7331/derper :1.98.2 | linux/amd64linux/arm64linux/riscv64 | 2026/05/19 10:15 | 24.6 MB | sha256:dd0984ca3787… | |||
docker.io/ngc7331/derper :1.96-unsafe | linux/amd64linux/arm64linux/riscv64 | 2026/05/11 12:18 | 24.6 MB | sha256:7c2748e13efc… | |||
docker.io/ngc7331/derper :1.96 | linux/amd64linux/arm64linux/riscv64 | 2026/05/11 12:18 | 24.6 MB | sha256:4aa05ab16f22… | |||
docker.io/ngc7331/derper :1.96.4-unsafe | linux/amd64linux/arm64linux/riscv64 | 2026/05/11 12:18 | 24.6 MB | sha256:7c2748e13efc… | |||
docker.io/ngc7331/derper :1.96.4 | linux/amd64linux/arm64linux/riscv64 | 2026/05/11 12:18 | 24.6 MB | sha256:4aa05ab16f22… | |||
docker.io/ngc7331/derper :1.96.3 | linux/amd64linux/arm64linux/riscv64 | 2026/03/20 09:18 | 24.3 MB | sha256:277d4f35e225… | |||
docker.io/ngc7331/derper :1.96.3-unsafe | linux/amd64linux/arm64linux/riscv64 | 2026/03/20 09:18 | 24.3 MB | sha256:dd72f51bb803… |