Comments (10)
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.
@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.
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.
This might be a relevant Docker bug: moby/moby#15127 (comment)
from docker-netbootxyz.
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.
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.
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.
I posted a workaround for this issue in #11
from docker-netbootxyz.
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.
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)
- tar: can't open '/tmp/menus.tar.gz': No such file or directory HOT 2
- Tftp Not working in K8s HOT 6
- Editing boot.cfg and other TFTP files has no effect HOT 6
- preseed does not work HOT 3
- Ubuntu pressed trouble. HOT 4
- centos mirrors need update HOT 4
- container won't start start after update from 0.6.4-ls44 to 0.6.4-ls45 HOT 5
- Can we have a user manual or wiki please? HOT 2
- Nessus Reports "Critical" Vulnerability with Nginx in Container (nginx 0.6.x < 1.20.1 1-Byte Memory Overwrite RCE) HOT 2
- OpenWrt Settings doenst seem to work HOT 9
- Doesn't work with Secure Boot HOT 3
- tftp service fails to run when IPv6 is disabled on Host HOT 3
- TFTP should run in single-port mode to enable compatibility with Kubernetes HOT 5
- OpenWRT Dashboard Timeout with Undefined 1 HOT 3
- support arm uboot bootp HOT 3
- Doesn't work at all. HOT 4
- [FEAT] TFTP Create File Option (Or custom command line options) HOT 3
- [BUG] Documentation for configuring VyOS's DHCP server is not valid HOT 4
- [BUG] hidden/dot files not showing in nginx HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-netbootxyz.