From 57656f44a191b39fd89c5ed34e5fb8a973fae8ae Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 10 Jul 2017 20:59:50 -0700 Subject: [PATCH] initial commit --- Dockerfile | 13 +++++++++++++ README.me | 5 +++++ start | 5 +++++ tftpd-hpa.conf | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 Dockerfile create mode 100644 README.me create mode 100644 start create mode 100644 tftpd-hpa.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6d223f0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:xenial + +VOLUME /tftp + +RUN apt-get update && \ + apt-get install -y tftpd-hpa + +ADD start /start + +RUN chmod +x /start + +ENTRYPOINT ["/start"] + diff --git a/README.me b/README.me new file mode 100644 index 0000000..b527a27 --- /dev/null +++ b/README.me @@ -0,0 +1,5 @@ +tftpd-hpa in a docker container + +listens on port 69 udp + +run: docker run -v /host/data:/tftp -p 69:69/udp tftpd diff --git a/start b/start new file mode 100644 index 0000000..5df630b --- /dev/null +++ b/start @@ -0,0 +1,5 @@ +#!/bin/sh + +# --secure + +exec /usr/sbin/in.tftpd --foreground --user tftp --address :69 /tftp diff --git a/tftpd-hpa.conf b/tftpd-hpa.conf new file mode 100644 index 0000000..669c3e9 --- /dev/null +++ b/tftpd-hpa.conf @@ -0,0 +1,6 @@ +# /etc/default/tftpd-hpa + +TFTP_USERNAME="tftp" +TFTP_DIRECTORY="/tftp" +TFTP_ADDRESS=":69" +TFTP_OPTIONS=""