i'm desperately trying to run tftp-hpa in a docker container. I built an image from dockerfile and start it with:
docker run -v /tmp:/srv/tftp -d -p 69:69/udp -t tftp_server
It's up and running and i can access the server via the virtual docker interface:
me@hostmachine$ tftp 172.17.0.79
tftp> get /srv/tftp/test
Received 7 bytes in 0.0 seconds
But from my opinion the -p 69:69/udp switch should forward the 69 port of my host machine to the containers port 69. But this does not seem to work:
me@hostmachine$ tftp localhost
tftp> get /srv/tftp/test
Transfer timed out.
From netstat, i see that port 69 on my hostmachine is open. I tried exactly the same scenario with an httpd server and port 80. It works here, i can access the website via 127.0.0.1:80 in my browser. The host machine is ubuntu 15.04 intel and the docker image is based on debian base image.
Can anybody help me? Is there something i could have missed? Any ideas how to debug? I will happily share my Dockerfile or any more information, but tried to keep question short.