Open hellor00t opened 5 years ago
Same thing here...
It seems that the error is raised because by default the containerized daemon doesn't have access to any of the zerotier interfaces of the host machine.
It's possible to solve the issue by commenting out the interface section in zerotier config, so the daemon is bound to all interfaces inside the container, and configure some port forwarding in compose file instead:
version: '3'
services:
ztdns:
build: .
ports:
- "192.168.191.218:5356:53/udp"
volumes:
- .ztdns.toml:/app/.ztdns.toml
Changing the interface from zt0
to eth0
worked for me. eth0 is the default interface name in alpine.
Error:
fatal msg="Could not get interface: route ip+net: no such network interface\n"
interface = "zt7nnjn3xu" list in .ztdns.toml in the root directory of the git repoI can start the service using the pre-compiled executable with the same config file and have no problems.
Running this on CentOS 7 as root.