2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 21:33:02 +01:00
This commit is contained in:
kev
2015-06-10 01:12:43 +08:00
parent e4ebed1d27
commit 03afb54aa1

View File

@@ -18,6 +18,10 @@ pureftpd:
restart: always restart: always
``` ```
> We only need to expose port 21 to accept client ftp connection.
> Pure-FTPd will open random port to accept client ftp-data connection.
> At this time, host machine is a router for DNAT.
## server ## server
``` ```
@@ -31,6 +35,16 @@ $ docker exec -it pureftpd_pureftpd_1 bash
>>> pure-pw passwd kev -m >>> pure-pw passwd kev -m
>>> pure-pw userdel kev -m >>> pure-pw userdel kev -m
>>> pure-ftpwho -n >>> pure-ftpwho -n
>>> exit
$ tree -F
.
├── docker-compose.yml
├── ftpuser/
│   └── kev/
│   └── file.txt
└── pure-ftpd/
├── pureftpd.passwd
└── pureftpd.pdb
``` ```
## client ## client