Skip to content

Instantly share code, notes, and snippets.

@binarycat0
Last active October 2, 2019 10:13
Show Gist options
  • Save binarycat0/8a59dc6415baac82e0a886fed85622f6 to your computer and use it in GitHub Desktop.
Save binarycat0/8a59dc6415baac82e0a886fed85622f6 to your computer and use it in GitHub Desktop.
# 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