NOTE: This is a fork of wastrachan/docker-tftpd with a few additions, such as control over tftpd verbosity.
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 didstopia/tftpd:latest
Clone this repository, and run make build to build an image:
git clone https://github.com/Didstopia/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 \
-e TFTPD_DEBUG=true \
--restart unless-stopped \
didstopia/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: didstopia/tftpd:latest
container_name: tftpd
environment:
- PUID=1111
- PGID=1112
- TFTPD_DEBUG=true
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.
docker pull didstopia/tftpd:latest