Last active
October 2, 2019 10:13
-
-
Save binarycat0/8a59dc6415baac82e0a886fed85622f6 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
# create ftp dir | |
mkdir -p /ftp/ftp-user | |
# change creds | |
chmod 0777 -R /ftp | |
# run vsftp | |
docker run --rm -it \ | |
--name ftpd_server \ | |
-p 21:21 \ | |
-p 20:20 \ | |
-p 12020-12025:12020-12025 \ | |
-e FTP_USER=ftp-user \ | |
-e FTP_PASSWORD=786gyfuvcghvtf \ | |
-e SERVICE_VSFTP_OPTS="-opasv_address=<YOUR_IP_ADDRESS> -olocal_umask=077 -odual_log_enable=YES -ochroot_local_user=YES -ofile_open_mode=0775 -owrite_enable=YES" \ | |
-v /ftp/ftp-user:/home/ftp-user \ | |
webdevops/vsftp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment