From 62b72a3ffbbb2d81af3f229c58077df79cd5baf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Karpi=C5=84ski?= Date: Sun, 2 Feb 2020 22:16:50 +0100 Subject: [PATCH] tftp working --- tftp/Dockerfile | 2 -- tftp/Readme.md | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tftp/Readme.md 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 +```