This image uses environment variables to allow the configuration of some parameters at run time:
Variable name: FTP_USER
Default value: user
Accepted values: Any string. Avoid whitespaces and special chars.
Description: Username for the default FTP account. If you don't specify it through the FTP_USER environment variable at run time, user will be used by default.
Variable name: FTP_PASS
Default value: pass
Accepted values: Any string.
Description: If you don't specify a password for the default FTP account through FTP_PASS.
Variable name: PASV_ENABLE
Default value: YES
Accepted values: <NO|YES>
Description: Set to NO if you want to disallow the PASV method of obtaining a data connection.
Variable name: PASV_ADDRESS
Default value: Docker host IP / Hostname.
Accepted values: Any IPv4 address or Hostname (see PASV_ADDR_RESOLVE).
Description: If you don't specify an IP address to be used in passive mode, the routed IP address of the Docker host will be used. Bear in mind that this could be a local address.
Variable name: PASV_ADDRESS_INTERFACE
Default value: eth0.
Accepted values: Specific network interface for PASV_ADDRESS.
Description: Allow you to extract the IP address of a network interface to set the PASV_ADDRESS dynamically. Usefull when you want to connect to the FTP server from Host machine or from another container.
Variable name: PASV_ADDR_RESOLVE
Default value: NO
Accepted values: <NO|YES>
Description: Set to YES if you want to use a hostname (as opposed to IP address) in the PASV_ADDRESS option.
Variable name: PASV_MIN_PORT
Default value: 21100
Accepted values: Any valid port number.
Description: This will be used as the lower bound of the passive mode port range. Remember to publish your ports with docker -p parameter.
Variable name: PASV_MAX_PORT
Default value: 21110
Accepted values: Any valid port number.
Description: This will be used as the upper bound of the passive mode port range. It will take longer to start a container with a high number of published ports.
Variable name: XFERLOG_STD_FORMAT
Default value: NO
Accepted values: <NO|YES>
Description: Set to YES if you want the transfer log file to be written in standard xferlog format.
Variable name: FILE_OPEN_MODE
Default value: 0666
Accepted values: File system permissions.
Description: The permissions with which uploaded files are created. Umasks are applied on top of this value. You may wish to change to 0777 if you want uploaded files to be executable.
Variable name: LOCAL_UMASK
Default value: 077
Accepted values: File system permissions.
Description: The value that the umask for file creation is set to for local users. NOTE! If you want to specify octal values, remember the "0" prefix otherwise the value will be treated as a base 10 integer!
Variable name: PASV_PROMISCUOUS
Default value: NO
Accepted values: <NO|YES>
Description: Set to YES if you want to disable the PASV security check that ensures the data connection originates from the same IP address as the control connection. Only enable if you know what you are doing! The only legitimate use for this is in some form of secure tunnelling scheme, or perhaps to facilitate FXP support.
Variable name: PORT_PROMISCUOUS
Default value: NO
Accepted values: <NO|YES>
Description: Set to YES if you want to disable the PORT security check that ensures that outgoing data connections can only connect to the client. Only enable if you know what you are doing! Legitimate use for this is to facilitate FXP support.
Variable name: HIDE_IDS
Default value: YES
Accepted values: <NO|YES>
Description: If enabled, all user and group information in directory listings will be displayed as "ftp".
Variable name: MAX_CLIENTS
Default value: 10
Accepted values: Any valid number.
Description: This is the maximum number of clients which may be connected. Any additional clients connecting will get an error message. The value 0 switches off the limit.
Variable name: MAX_PER_IP
Default value: 5
Accepted values: Any valid number.
Description: This is the maximum number of clients which may be connected from the same source internet address. A client will get an error message if they go over this limit. The value 0 switches off the limit.
Variable name: LOG_STDOUT
Default value: NO
Accepted values: <NO|YES>
Description: Output vsftpd log through STDOUT, so that it can be accessed through the container logs.