1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

fix tftpd

This commit is contained in:
kev 2023-06-29 14:27:49 +08:00
parent 241d46662c
commit 89f2280b8f
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@ tftpd
```bash ```bash
$ docker-compose up -d $ docker-compose up -d
$ echo 'hello world' > /tmp/hello.txt $ echo 'hello world' > /tmp/hello.txt
$ curl -T /tmp/hello.txt tftp://127.0.0.1 $ curl -T /tmp/hello.txt tftp://127.0.0.1/
$ curl tftp://127.0.0.1/hello.txt $ curl tftp://127.0.0.1/hello.txt
``` ```

View File

@ -2,8 +2,7 @@ version: "3.8"
services: services:
tftpd: tftpd:
image: vimagick/tftpd image: vimagick/tftpd
ports:
- "69:69/udp"
volumes: volumes:
- ./data:/data - ./data:/data
network_mode: host
restart: unless-stopped restart: unless-stopped