Created
April 26, 2016 14:10
-
-
Save tuki0918/e464d37d5be67afae7f9e031abc9f67f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM stilliard/pure-ftpd:hardened | |
ENV FTPUSER ftpuser | |
ENV FTPPASS ftppass | |
RUN printf "${FTPPASS}\n${FTPPASS}\n" | pure-pw useradd $FTPUSER -u ftpuser -d /home/ftpusers/$FTPUSER | |
RUN pure-pw mkdb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build -t ftpd . | |
docker run -d --name ftpd_server \ | |
-p 2121:21 -p 30000-30009:30000-30009 \ | |
-e "PUBLICHOST=localhost" \ | |
-v "`pwd`/ftpserver:/home/ftpusers" \ | |
ftpd | |
ftp -p 192.168.99.100 2121 | |
ftpuser | |
ftppass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.