zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.22k stars 1.66k forks source link

QNAP Container Station (docker) cannot open TUN/TAP #2148

Open scegg opened 11 months ago

scegg commented 11 months ago

Hi. I'm trying to move zerotier from qpkg mode to docker mode.

/dev/net/tun is presented by QVPN.

Here is my compose file in Container Station:

version: '3'
services:
  zerotier:
    image: zerotier/zerotier
    container_name: zerotier-one
    network_mode: host
    environment:
      - ZEROTIER_IDENTITY_PUBLIC=<my public key>
      - ZEROTIER_IDENTITY_SECRET=<my secret key>
    devices:
      - /dev/net/tun
    command: <my network id>
    cap_add:
      - NET_ADMIN
      - SYS_ADMIN

Running log:

=> Configuring networks to join
=> Joining networks from command line: [my network id]
===> Configuring join: [my network id]
=> Starting ZeroTier
===> ZeroTier hasn't started, waiting a second
Starting Control Plane...
Starting V6 Control Plane...
ERROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory
=> Writing healthcheck for networks: [my network id]
=> zerotier-cli info: [200 info 1c565c88e2 1.12.2 OFFLINE]
=> Sleeping infinitely
iranee commented 2 months ago

test https://github.com/iranee/qnap-zerotier

scegg commented 2 months ago

test https://github.com/iranee/qnap-zerotier

Currently use zyclonite/zerotier without any problem. This issue is about official release only.