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

mcjoin -s in docker container fails with: No interface (eth0), or no IPv6 address yet, rc 0: No error information #7

Closed
henk52 opened this issue Jun 12, 2020 · 1 comment

Comments

@henk52
Copy link

henk52 commented Jun 12, 2020

Hi

When I run mcjoin -s in a container it reports: No interface (eth0), or no IPv6 address yet, rc 0: No error information

Do I need to give special rights to the container?

Reproduction:

  1. git pull
  2. docker build .
  3. docker run -it xxx sh
  4. run it in the container
mcjoin -s -l debug
Found default intefaces eth0
NOFILE: current 1048576 max 1048576
NOFILE: set new current 2058 max 1048576
Found eth0 addr 172.17.0.2
Valid iface eth0, ifindex 118, addr 172.17.0.2
Sending on iface eth0 addr 172.17.0.2 ifindex 118
No interface (eth0), or no IPv6 address yet, rc 0: No error information
No interface (eth0), or no IPv6 address yet, rc 0: Interrupted system call
No interface (eth0), or no IPv6 address yet, rc 0: Interrupted system call
No interface (eth0), or no IPv6 address yet, rc 0: Interrupted system call
...

I've tried it on an Ubuntu 18.04 host and a Fedora 30 host.

Thanks

@troglobit
Copy link
Owner

Well, docker applications are contained by default. To use the hosts network interfaces you have to tell docker to open that up. Like so:

 docker run --rm --network host troglobit/mcjoin:latest mcjoin -s 225.1.2.3

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

2 participants