Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install and configure ftp in docker

Tags:

docker

ftp

I am sure there is a way to install ftp in docker but I can't find out how. I looked at other peoples Dockerfile and but their code is very complex. Is there a straight foreword way to install and configure ftp in a Dockerfile?

like image 653
Luke101 Avatar asked Nov 10 '17 22:11

Luke101


People also ask

Can I Sftp on docker container?

The SFTP server can be easily deployed to any platform that can host containers based on Docker. Below are deployment methods for: Docker CLI. Docker-Compose.


1 Answers

docker run -d -p 20-21:20-21 -p 65500-65515:65500-65515 -v /tmp:/var/ftp:ro metabrainz/docker-anon-ftp

That's the simpler way to open an anonymous FTP server on ftp://localhost, just replace /tmp for the directory of your preference.

And its Dockerfile looks really simple https://github.com/metabrainz/docker-anon-ftp/blob/master/Dockerfile

like image 85
Gabriel Miretti aka gmiretti Avatar answered Nov 02 '22 04:11

Gabriel Miretti aka gmiretti