Git Product home page Git Product logo

Comments (10)

aptalca avatar aptalca commented on June 11, 2024

Why are you overwriting the service file in your docker run?

Use the sample docker run and watch it work. This image has over 10 million pulls and it works just fine.

from docker-netbootxyz.

rgov avatar rgov commented on June 11, 2024

@aptalca To add verbosity flags, because it runs without it by default. Otherwise the command is the same.

I was able to get logs finally, and it looks like tftpd is receiving the request, but the host does not see the response:

daemon.notice: Oct  3 22:31:40 in.tftpd[545]: RRQ from 172.17.0.1 filename asdf
daemon.info: Oct  3 22:31:40 in.tftpd[545]: sending NAK (1, File not found) to 172.17.0.1

from docker-netbootxyz.

rgov avatar rgov commented on June 11, 2024

This may be some peculiarity with how Docker for Mac works. The container is part of the bridge network, where it gets assigned an IP address in 172.17.0.0/16. This is not actually directly connected to any interface on the macOS host, i.e., connecting to the gateway 172.17.0.1 does not connect to the host:

# host:
$ nc -l 0.0.0.0 4444

# container:
$ docker run --rm -it alpine/socat - TCP:172.17.0.1:4444
2020/10/03 22:51:46 socat[1] E connect(5, AF=2 172.17.0.1:4444, 16): Connection refused

Instead, services running on the host are reachable at host.docker.internal which for me is 192.168.65.2. So we have a problem where you can't send the response to the place it seems to originate.

Edit: I reproduced this on Linux as well. The only difference is there you can tftp 172.18.0.1 from the host and it works.

from docker-netbootxyz.

rgov avatar rgov commented on June 11, 2024

This might be a relevant Docker bug: moby/moby#15127 (comment)

from docker-netbootxyz.

tobbenb avatar tobbenb commented on June 11, 2024

I do not get any timeout here.

saarg@pop-os:~$ tftp 192.168.1.10
tftp> get test
Error code 1: File not found
tftp>

from docker-netbootxyz.

thelamer avatar thelamer commented on June 11, 2024

You cannot do TFTP cli from the same host. (even through virtual networks)
I do not know the exact reason why, but you have to test from a different host on the network. (physical hardware)

from docker-netbootxyz.

github-actions avatar github-actions commented on June 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from docker-netbootxyz.

vangorra avatar vangorra commented on June 11, 2024

I posted a workaround for this issue in #11

from docker-netbootxyz.

thelamer avatar thelamer commented on June 11, 2024

TFTP file transfers most definitely work without host level networking I have multiple setups. You can next-server from the same host. I understand this makes connection issues hard/impossible to troubleshoot, but unless anyone has a solid alternative that is reliable for testing people experiencing issues need to take a look at their overall setup.

from docker-netbootxyz.

PeterHagen avatar PeterHagen commented on June 11, 2024

I can't get the tftpd connection working on a MacOS machine and docker-compose setup (latest docker version). Even with the #11 fix, I still have the same issue. I also tried to use host networking, but keep getting the "Transfer timed out." messages. I guess its the udp docker networking issue that I'm running into.

For now I'm solving it with the build-in tftp server of MacOS and simlinking to the menus folder. That works, but of course not the way I would like it to be.

from docker-netbootxyz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.