mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
fix tftpd
This commit is contained in:
parent
241d46662c
commit
89f2280b8f
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user