Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export FTP_USER="test"
- export FTP_PASSWORD="test"
- docker run
- --name mock_ftp_server
- --publish 21:21
- --publish 4559-4564:4559-4564
- --env FTP_USER="$FTP_USER"
- --env FTP_PASSWORD="$FTP_PASSWORD"
- --detach
- panubo/vsftpd
- $ curl --upload-file /tmp/mock.data-2017-03-28.tar.gz ftp://localhost --user $FTP_USER:$FTP_PASSWORD
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
- curl: (25) Failed FTP upload: 553
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement