Tftpd in a Docker container, with data directory in a volume, and a configurable UID/GID for data files.
Pull the latest image from Docker Hub:
docker pull 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
If you need to rebuild the image, run make clean build
.
Run this image with the make run
shortcut, or manually with docker run
.
docker run -v "$(pwd)/data:/data" \
--name tftpd \
-p 69:69/udp \
-e PUID=1111 \
-e PGID=1112 \
--restart unless-stopped \
wastrachan/tftpd:latest
If you wish to run this image with docker-compose, an example docker-compose.yml
might read as follows:
---
version: "2"
services:
tftpd:
image: wastrachan/tftpd
container_name: tftpd
environment:
- PUID=1111
- PGID=1112
volumes:
- </path/to/data>:/data
ports:
- 69:69/udp
restart: unless-stopped
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.
View license information for the software contained in this image.