fauria / docker-vsftpd

🐳 vsftpd Docker image based on Centos 7. Supports passive mode and virtual users.
https://hub.docker.com/r/fauria/vsftpd/
Apache License 2.0
414 stars 341 forks source link

Install iproute package to provide missing ip command #46

Closed CyberJack closed 4 years ago

CyberJack commented 4 years ago

The vsfptd pasv_address configuration setting is empty when not providing an ip address.

When not providing the environment variable PASV_ADDRESS it defaults to **IPv4**. During startup the run-vstfpd.sh command will check if PASV_ADDRESS equals **IPv4** and if so, it will try to determine the containers ip address using the /sbin/ip command.

The current centos:7 image is missing the /sbin/ip command, which causes the PASV_ADDRESS environment variable to become empty. The solution is to install the iproute package, which will provide the missing /sbin/ip command.

CyberJack commented 4 years ago

This solves issue #11.

invad0r commented 4 years ago

just ran into this issue /usr/sbin/run-vsftpd.sh: line 29: /sbin/ip: No such file or directory @fauria @srl295 any chance of a merge ?

srl295 commented 4 years ago

any chance of a merge ?

I'm just a user :)