zyclonite / zerotier-docker

ZeroTier One as Docker Image
MIT License
305 stars 74 forks source link

cannot bind to local control interface port 9993|unable to configure virtual network port: could not open TUN/TAP device: No such file or directory #22

Open lozn00 opened 1 year ago

lozn00 commented 1 year ago

openwrt docker run

stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
stderr: zerotier-one: fatal error: cannot bind to local control interface port 9993
zyclonite commented 1 year ago

can you give a bit more information on how you run the container and what your environment is like? (os version, docker version, run command...)

lozn00 commented 1 year ago

Docker 版本 | 20.10.17

esir openwrt 2023 version os download address https://drive.google.com/drive/folders/1dqNUrMf9n7i3y1aSh68U5Yf44WQ3KCuh

exec command docker run --name zerotier-one --device=/dev/net/tun --net=host \ --cap-add=NET_ADMIN --cap-add=SYS_ADMIN \ -v /var/lib/zerotier-one:/var/lib/zerotier-one zyclonite/zerotier

lozn00 commented 1 year ago

image

lozn00 commented 1 year ago

image

lozn00 commented 1 year ago

click (命令行|command) paste comand parse cli command auto fill input , image

lozn00 commented 1 year ago

has soluve ,check all port

but throw

RROR: unable to configure virtual network port: could not open TUN/TAP device: No such file or directory

zyclonite commented 1 year ago

could it be that zerotier is already running? from your screenshot it shows one container running for 24min and the other failing... maybe try binding it to a different port using the env var ZT_PRIMARY_PORT

like: docker run --name zerotier-one --device=/dev/net/tun --net=host --cap-add=NET_ADMIN --cap-add=SYS_ADMIN -e ZT_PRIMARY_PORT=9994 -v /var/lib/zerotier-one:/var/lib/zerotier-one zyclonite/zerotier