Docker: How to deploy a vsftpd instance?


I’m starting to try web deployment on Docker.

So now I have now:

  • Cloning GitHub private repository with Docker container non-root user?
  • “unauthorized: Unauthorized” message when pushing Docker container to Bluemix
  • Should Node.js and MongoDB be in different pods?
  • Docker image for aspNet core hangs on windows
  • Cannot use vim, vi, nano, yum inside docker container
  • How to initialize a database on a data volume container?
    1. mariadb instance to hold all the data, the data directory is set as volume;
    2. php:fpm instance for individual websites, which volumes are set to the sub-directories of /var/docker/www;
    3. nginx front-end as a individual container, volume is set to /var/docker/www, configuration volume is set as -v /var/docker/nginx/conf.d /etc/nginx/conf.d;

    So, there is one thing left, I want to give a ftp account to relating customers to access the sub-directories of /var/www.

    For example: /var/docker/www/site1, or /var/docker/www/site2


    So, now I want to make a vsftpd image myself, but I was facing to the below questions:

    1. How should I set the user permissions? I will have different ftp users, but the www file owners are all set to root.
    2. (Newbie question) Should I start the vsftpd inside as daemon? Setting listen=NO?
    3. How to set the network? Will that be a NAT problem?

    Finally, is there a good overall solution on this problem? To deploy a vsftpd instance on docker host?

  • Django app server hangs / won't start in Docker Compose
  • Docker with a Virtual Sound Card for Stream Altering
  • Consul DNS not available on docker bridge IP
  • How to run python scripts and do CMD in Dockerfile for the docker container
  • Windows Containers hosted on Windows 10 lose their DNS
  • Using jenkins docker image
  • One Solution collect form web for “Docker: How to deploy a vsftpd instance?”

    I will have different ftp users, but the www file owners are all set to root.

    It would be best if those www files could be set to www-data, as this docker-vsftpd/Dockerfile does.
    You also have fauria/docker-vsftpd which allows to parameterize the ftp user, but that will be useful only if www files are part of a common group with said ftp users.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.