tftpd in a Docker container, with a data directory in a volume, and a configurable UID/GID for the tftpd process.
Pull the latest image from Docker Hub:
docker pull wastrachan/tftpd
Or, pull from the GitHub Container Registry:
docker pull ghcr.io/wastrachan/tftpd
Clone this repository, and run make build
to build an image:
git clone https://github.com/wastrachan/docker-tftpd.git
cd docker-tftpd
make build
Run this image with the make run
shortcut, or manually with docker run
.
docker run -v "$(pwd)/data:/data" \
--name tftpd \
--rm \
-p 69:69/udp \
-e PUID=$(id -u) \
-e PGID=$(id -g) \
wastrachan/tftpd:latest
If you'd like to override the UID and GID of the tftpd
process, you can do so with the environment variables PUID
and PGID
. This is helpful if other containers must access your configuration volume.
Service | Port |
---|---|
TFTPD | 69 |
Volume | Description |
---|---|
/data |
Data directory for files served by tftpd |
The content of this project itself is licensed under the MIT License.