version: "3" services: ftp: image: fauria/vsftpd container_name: vsftpd hostname: ftp privileged: true user: root ports: - "21:21" - "20:20" - "21100-21110:21100-21110" environment: - FTP_USER=admin - FTP_PASS=intest - PASV_ADDRESS=223.75.51.168 - PASV_MIN_PORT=21100 - PASV_MAX_PORT=21110 volumes: - /etc/localtime:/etc/localtime:ro - /data/caeri/ftp/ftp:/home/vsftpd restart: always
标签:21100,21110,compose,Ftp,vsftpd,PASV,ftp,docker From: https://www.cnblogs.com/yeg0zj/p/17622187.html