PureFTPd service for development and testing purposes.
Install Docker and Docker Compose.
The logging driver is set to local
.
Follow this guide to configure the docker daemon to use the
local file logging driver.
To set a custom configuration create a file in ~/.config/docker-dev-tools/dev-pureftpd/settings.env
and add the variables to override.
Use ./servicectl.sh info
for the list of available variables and their values.
When setting paths, always use the unix slash /
even on Windows.
Note:
~
is an alias for the user's home directory.
- Linux:
/home/<username>
- macOS:
/Users/<username>
- Windows:
C:/Users/<username>
The
${HOME}
variable is also available but can lead to compatibility issues, especially on Windows.
By default the persistence directory is set to ~/.local/share/docker-dev-tools/dev-pureftpd
.
Any custom directory should be set in a path inside the user's home directory. Setting it outside is not supported and, depending on the host platform, may not work.
There's no need to manually create directory, Docker Compose will take care if it.
To manage the service, execute ./servicectl.sh <command>
.
Command | Arguments | Description |
---|---|---|
up |
Bring up the service. | |
down |
Bring down the service. | |
prune |
Bring down the service and delete the data. | |
info |
Show informations about the service: name, config, status. | |
logs |
Show service's logs, takes the same arguments as docker compose logs . |
|
useradd |
<name> [directory] |
Create a new user identified by <name> with access to [directory] . If [directory] is not specified, a directory <name> will be created. |
userdel |
<name> |
Delete the user identified by <name> . |
userlist |
List all users and their home directories. |
On Linux and macOS the services are available at localhost
.
On Windows the services are available at the virtual machine's ip. Usually 192.168.99.100
,
can be inspected with docker-machine ip
.
Type | Application | Default port |
---|---|---|
FTP server | pureftpd |
21 |
FTP passive ports | pureftpd |
30000-30100 |
There are no default accounts configured.
Create one with the useradd
command.