1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02: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
```
> 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
```
@ -31,6 +35,16 @@ $ docker exec -it pureftpd_pureftpd_1 bash
>>> pure-pw passwd kev -m
>>> pure-pw userdel kev -m
>>> pure-ftpwho -n
>>> exit
$ tree -F
.
├── docker-compose.yml
├── ftpuser/
│   └── kev/
│   └── file.txt
└── pure-ftpd/
├── pureftpd.passwd
└── pureftpd.pdb
```
## client