Skip to content

rhrn/docker-vsftpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rhrn/vsftpd

Examples

  • test server via command line
docker run --rm -e PASSWORD=FSBhuNOR -p 21000:21 -p 20000:20000 rhrn/vsftpd:latest
  • push file
touch test.txt
lftp ftp://files:FSBhuNOR@localhost:21000 -e "set ssl:verify-certificate false; put test.txt; ls; exit"
  • docker-compose.yaml
version: '3.6'

volumes:
  files:

services:

  ftp:
    image: rhrn/vsftpd
    environment:
      - PASSWORD=FSBhuNOR
    ports:
      - '21000:21'
      - '20000:20000'
    volumes:
      #- /path/to/cert.pem:/etc/vsftpd/vsftpd.pem
      - files:/home/files
  • genereate custom cert
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout custom_vsftpd.pem -out custom_vsftpd.pem -subj "/C=RU/O=vsftpd/CN=example.org

References