zerotier-docker icon indicating copy to clipboard operation
zerotier-docker copied to clipboard

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

Open lozn00 opened this issue 1 year ago • 7 comments

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

lozn00 avatar Apr 19 '23 15:04 lozn00

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...)

zyclonite avatar Apr 19 '23 15:04 zyclonite

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 avatar Apr 19 '23 15:04 lozn00

image

lozn00 avatar Apr 19 '23 15:04 lozn00

image

lozn00 avatar Apr 19 '23 15:04 lozn00

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

lozn00 avatar Apr 19 '23 15:04 lozn00

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

lozn00 avatar Apr 19 '23 15:04 lozn00

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

zyclonite avatar Apr 19 '23 19:04 zyclonite