Skip to content

Opmet/FTPserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Ftp file server

A debian-based docker container for vsftpd server. In this small implementation guest users are able to download files from internet.

In a browser, the link will look something like this. ftp://ftpGuest:1234@192.168.1.54/foo.txt

Install container

  1. Build dockerfile.
    sudo docker build -t legionem/vsftpd:latest .

  2. Run container in detached mode on port 21.
    sudo docker run -d -p 21:21 --name vsftpd legionem/vsftpd:latest

Some tips for Administration

  • Copying files from host to running docker container.
    sudo docker cp foo.txt vsftpd:/home/ftpGuest/foo.txt

  • Remove files in running docker container.
    sudo docker exec -it vsftpd rm /home/ftpGuest/foo.txt

  • Create a bash session in the container.
    sudo docker exec -it vsftpd bash

  • Step out from container bash session and restart.
    exit
    sudo docker container restart vsftpd

  • To read log file install nano and run.
    apt-get update
    apt-get install nano
    nano /var/log/vsftpd.log

Helpful links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published