使用Docker快速搭建FTP服务器

 

Docker Pure-ftpd Server

   参考来源:https://hub.docker.com/r/stilliard/pure-ftpd/ 

   pure-ftpd源码:https://github.com/jedisct1/pure-ftpd

   docker-pure-ftpd源码:https://github.com/stilliard/docker-pure-ftpd

 

快速开始

version: '2'
services:
  ftpd_server:
    image: stilliard/pure-ftpd:hardened
    container_name: pure-ftpd
    ports:
      - "21:21"
      - "30000-30009:30000-30009"
    volumes: # remember to replace /folder_on_disk/ with the path to where you want to store the files on the host machine
      - "./data:/home/yunwisdom/"
      - "./passwd:/etc/pure-ftpd/passwd"
    environment:
      PUBLICHOST: "localhost"
      FTP_USER_NAME: yunwisdom
      FTP_USER_PASS: mypass
      FTP_USER_HOME: /home/yunwisdom
    restart: always

PS:请先确保您已经安装了docker和docker-compose 。然后,在特定目录,如:~/pure-ftpd,并在创建目录 ~/pure-ftpd/data,~/pure-ftpd/passwd ,保存上面yml文件为docker-compose.yml,然后执行docker-compose up 即可。

 

启动成功

 

登录FTP服务器(Ftp)

PS:FTP客户端 FileZilla_3.39.0_macosx-x86_setup_bundled.dmg

 

操作过程

 

FileZilla下载地址:https://raw.githubusercontent.com/YunWisdom/docker-pure-ftpd/master/.github/FileZilla_3.39.0_macosx-x86_setup_bundled.dmg , https://download.csdn.net/download/aria_miazzy/10933964

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值