diff --git a/tftp/Dockerfile b/tftp/Dockerfile index 7d0580f..e851127 100644 --- a/tftp/Dockerfile +++ b/tftp/Dockerfile @@ -1,6 +1,4 @@ FROM debian:buster RUN apt update && apt install -y xinetd tftpd-hpa -RUN mkdir -p /tftpboot && chmod -R 777 /tftpboot && chown -R nobody /tftpboot COPY tftp.xinetd.conf /etc/xinetd.d/tftp -COPY Dockerfile /tftpboot/test CMD ["script", "-c", "/usr/sbin/xinetd -d"] diff --git a/tftp/Readme.md b/tftp/Readme.md new file mode 100644 index 0000000..2270025 --- /dev/null +++ b/tftp/Readme.md @@ -0,0 +1,10 @@ +##TFTP Docker + +Starts TFTP server serving files from `/tftpboot`. + +A directory to serve files from must be bound to `/tftpboot` on run. + +Example run command: +``` +docker run --net host -v /path/to/your/files:/tftpboot images/tftp +```