2020-07-10 16:27:43 +00:00
|
|
|
# FTP Server
|
|
|
|
|
2021-04-12 22:29:31 +00:00
|
|
|
A simple FTP server, using
|
|
|
|
[`vsftpd`](https://security.appspot.com/vsftpd.html).
|
2020-07-10 16:27:43 +00:00
|
|
|
|
|
|
|
## How to use this image
|
|
|
|
|
2022-01-22 23:03:13 +00:00
|
|
|
### start a FTP Server instance
|
2020-07-10 16:27:43 +00:00
|
|
|
|
2021-04-12 22:24:28 +00:00
|
|
|
To start a container, with data stored in `/data` on the host, use the
|
|
|
|
following:
|
|
|
|
|
2020-07-10 16:27:43 +00:00
|
|
|
```sh
|
|
|
|
docker run \
|
|
|
|
--detach \
|
|
|
|
--env FTP_PASS=123 \
|
2021-04-12 21:21:22 +00:00
|
|
|
--env FTP_USER=user \
|
|
|
|
--name my-ftp-server \
|
|
|
|
--publish 20-21:20-21/tcp \
|
|
|
|
--publish 40000-40009:40000-40009/tcp \
|
2020-07-10 16:27:43 +00:00
|
|
|
--volume /data:/home/user \
|
|
|
|
garethflowers/ftp-server
|
|
|
|
```
|
|
|
|
|
2022-01-22 23:03:13 +00:00
|
|
|
### ... via `docker compose`
|
|
|
|
|
|
|
|
```yml
|
|
|
|
services:
|
|
|
|
ftp-server:
|
|
|
|
container_name: my-ftp-server
|
|
|
|
environment:
|
|
|
|
- FTP_PASS=123
|
|
|
|
- FTP_USER=user
|
|
|
|
image: garethflowers/ftp-server
|
|
|
|
ports:
|
|
|
|
- '20-21:20-21/tcp'
|
|
|
|
- '40000-40009:40000-40009/tcp'
|
|
|
|
volumes:
|
|
|
|
- '/data:/home/user'
|
|
|
|
```
|
|
|
|
|
2020-07-10 16:27:43 +00:00
|
|
|
## License
|
|
|
|
|
2021-04-12 22:24:28 +00:00
|
|
|
- This image is released under the
|
|
|
|
[MIT License](https://raw.githubusercontent.com/garethflowers/docker-ftp-server/master/LICENSE).
|