Add /dev/net/tun for container running in userspace (#589)

This commit is contained in:
Viktor Liu
2026-02-05 18:58:19 +08:00
committed by GitHub
parent 766b03cc40
commit 1ef008c950

View File

@@ -46,6 +46,9 @@ services:
- NET_ADMIN - NET_ADMIN
- SYS_ADMIN - SYS_ADMIN
- SYS_RESOURCE - SYS_RESOURCE
devices:
# Required when using userspace mode or when kernel module is not available
- /dev/net/tun
network_mode: host network_mode: host
environment: environment:
- NB_SETUP_KEY=<SETUP KEY> - NB_SETUP_KEY=<SETUP KEY>