docker pure-ftp 搭建ftp服务器

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

docker-compose.yml:

ftp:
  image: stilliard/pure-ftpd
  volumes:
    - "../wp/app:/home/ftpusers/code"
    - "./pure-ftpd:/etc/pure-ftpd"
  ports:
    - "21:21"
    - "30000:30000"
    - "30001:30001"
    - "30002:30002"
    - "30003:30003"
    - "30004:30004"
    - "30005:30005"
    - "30006:30006"
    - "30007:30007"
    - "30008:30008"
    - "30009:30009"
  environment:
    PUBLICHOST: localhost

  

注意,教程里让你写个CMD,但是千万不要写,因为Dockerfile里有CMD,写了会覆盖掉原来完善的CMD

 

posted @ 2015-11-06 11:39  wangchao719  阅读(4495)  评论(0编辑  收藏  举报