Open a temporary ftpd with Docker

Source: Internet
Author: User
Tags docker hub docker run
Open a temporary ftpd with Docker

(Kyung's Column 2017.10)

Search FTPD on the Docker hub to find the PURE-FTPD with the largest number of stars:
https://hub.docker.com/r/stilliard/pure-ftpd/

Open according to the instructions:

1. Start Docker

Docker run-d--name ftpd_server-p 21:21-p 30000-30009:30000-30009-e "Publichost=localhost" Stilliard/pure-ftpd:harden Ed

Where publichost=localhost should be replaced by their host name or IP, or passive cannot connect.

2. Go to Docker and add an FTP user

Docker exec-it Ftpd_server/bin/bash
PURE-PW useradd bob-f/etc/pure-ftpd/passwd/pureftpd.passwd-m-u ftpuser-d/home/ftpusers/bob

PURE-PW Useradd will ask for the password.

If you want to permanently save the uploaded file, you need to add a volume mapping to the Docker boot, or the file will not exist when Docker is closed.
See here: Keep user Database in a volume



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.