docker-qbittorrentvpn
docker-qbittorrentvpn copied to clipboard
Please consider adding CREATE_TUN_DEVICE
I'm using docker swarm to deploy. So for me to add devices is not a possibility. Would it be possible to added CREATE_TUN_DEVICE true or false and when true you create the device in the containers?
2021-11-25 03:40:35 [montreal411] Peer Connection Initiated with [AF_INET]199.36.223.142:1198 2021-11-25 03:40:35 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) 2021-11-25 03:40:35 Exiting due to fatal error
2021-11-25 03:40:35 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2) 2021-11-25 03:40:35 Exiting due to fatal error
Same here. I run the container with this config, but the error still exists:
privileged: true
devices:
- /dev/net/tun
EDIT:
Fixed by running these commands on the host machine:
mkdir /dev/net
mknod /dev/net/tun c 10 200
chmod 666 /dev/net/tun