Luke101
Luke101

Reputation: 65238

How to install and configure ftp in docker

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?

Upvotes: 8

Views: 46899

Answers (1)

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

Upvotes: 17

Related Questions