docker-pure-ftpd: Error connecting using a ftp client

Hello,

I used this docker and it works great. I mean, I can connect using command line but when I use a real ftp client, I have error like :

  • 113 : Passive mode failed
  • Very long time before to connect…

I also have limit to 5 connections :

$ ftp 192.168.99.100
Connected to 192.168.99.100.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 2 of 5 allowed.
220-Local time is now 10:28. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.

In my docker-composer I have :

ftp:
  image: stilliard/pure-ftpd:latest
  env_file: docker/ftp.env
  ports:
    - "21:21"
    - "30000-30009:30000-30009"
  volumes:
    - ./ftp:/home/ftpusers/bob
    - ./vsftpd:/etc/pure-ftpd/passwd

ps aux on machine give me :

/bin/sh -c /run.sh -c 50 -C 10 -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P $PUBLICHOST -p 30000:30009

Any idea?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 21 (8 by maintainers)

Most upvoted comments

I used : panubo/vsftpd with this in docker-composer.yml

ftp:
  image: panubo/vsftpd
  env_file: docker/env/ftp.env
  ports:
    - "21:21"
    - "4559-4564:4559-4564"
  volumes:
    - ./docker/volumes/ftp/merx:/srv/merx/
    - ./docker/volumes/ftp/wms:/srv/wms/

And env variables :

FTP_USERS_ROOT=true
# MEMO user:password
# merx:merx123
# wms:wms123
FTP_USER_MERX=merx:$6$gwdQiyuQuzB41DbD$J7BW39vYKFSN/5WJs2HQnE/3WAOu5u6EzyRM9jcS4VERSlzhnQhyKEHoskRdmN4Jjc/aDiMmULdZCEuzIvZfW.
FTP_USER_WMS=wms:$6$QTQwUO./5AigEyIh$51BGc7ELBVoxbtvmdyfrCvB2VhGm/OfxMM6IJWPyFcBtaFwfoTT1l1nwcWVBh2BIz4giZBfX8z/zMTxHpwV3t/