This ftp server uses virtual users with a shared home directory /var/ftp/pub
.
Variable | Description | Example |
---|---|---|
MODE | Set to FTP, FTPS or FTPES to specify SSL behavior | FTP |
PASV_ADDRESS | The server hostname or ip | demo |
PASV_MIN_PORT | Min port for passive connections | 21000 |
PASV_MAX_PORT | Max port for passive connections | 21100 |
Note: All variables are mandatory.
username | password |
---|---|
user1 | pass1 |
user2 | pass2 |
user 2 | |
anonymous |
MODE=FTP PASV_ADDRESS=<your IP adress> docker-compose up
docker-compose run --service-ports --rm -e PASV_ADDRESS=<your IP adress> -e MODE=FTP vsftpd