docker-ftp-server/README.md

46 lines
929 B
Markdown
Raw Permalink Normal View History

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
### 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 \
--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
```
### ... 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).