美文网首页
docker 安装 vsftp

docker 安装 vsftp

作者: _fishman | 来源:发表于2019-12-03 13:13 被阅读0次
version: '2'
services:
  vsftpd:
    image: fauria/vsftpd
    container_name: vsftpd
    restart: always
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/resolv.conf:/etc/resolv.conf
      - ftp-data:/home/vsftpd 
    environment:
      - FTP_USER=ftpuser
      - FTP_PASS=123456
      - PASV_ADDRESS=10.253.253.24
      - ASV_MIN_PORT=21100
      - PASV_MAX_PORT=21100

    ports:
      - "20:20"
      - "21:21"
      - "21100-21110:21100-21110"
    logging:
      driver: "json-file"
      options:
        max-file: '3'
        max-size: "20m"

volumes:
    ftp-data:
      driver: local

PASV_ADDRESS 为外网ip , (非常重要: 这里一定要绑定宿主机对外的ip)

相关文章

网友评论

      本文标题:docker 安装 vsftp

      本文链接:https://www.haomeiwen.com/subject/ryscgctx.html