1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/tftpd/README.md

28 lines
642 B
Markdown
Raw Normal View History

2016-11-02 09:23:46 +00:00
tftpd
=====
2023-06-29 06:13:55 +00:00
[tftpd][1] is a server for the Trivial File Transfer Protocol.
## up and running
```bash
$ docker-compose up -d
$ echo 'hello world' > /tmp/hello.txt
2023-06-29 06:27:49 +00:00
$ curl -T /tmp/hello.txt tftp://127.0.0.1/
2023-06-29 06:13:55 +00:00
$ curl tftp://127.0.0.1/hello.txt
```
2023-06-29 08:28:48 +00:00
## realtime logging
```
$ docker-compose exec tftpd sh
>>> apk add --no-cache inetutils-syslogd
>>> syslogd
>>> tail -f /var/log/syslog
Jun 29 08:26:30 server syslogd (GNU inetutils 2.4): restart
Jun 29 08:27:28 server in.tftpd[90]: WRQ from 127.0.0.1 filename hello.txt
Jun 29 08:27:34 server in.tftpd[91]: RRQ from 127.0.0.1 filename hello.txt
```
2023-06-29 06:13:55 +00:00
[1]: https://wiki.archlinux.org/title/TFTP