Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-Compose - Can't find interfaces #16

Open
hellor00t opened this issue May 1, 2019 · 3 comments
Open

Docker-Compose - Can't find interfaces #16

hellor00t opened this issue May 1, 2019 · 3 comments

Comments

@hellor00t
Copy link

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 repo

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

@step21
Copy link

step21 commented May 28, 2019

Same thing here...

@Kznzl
Copy link

Kznzl commented Jun 17, 2019

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

@wei
Copy link

wei commented Sep 24, 2019

Changing the interface from zt0 to eth0 worked for me. eth0 is the default interface name in alpine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants