-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Question] Access the server from outside docker (and between containers) #76
Comments
Hi @Frondor , No problem, I think the problem is that you need to bind your docker machine IP to pure-ftpd as the PUBLICHOST instead of localhost. |
Worked! Thank you! |
You're welcome, glad it worked :). I'd love to add a add a section about docker-machine to the readme file in case anyone else runs into any issues, if you have any notes from your experience with it using ftp let me know 👍 |
Thank you Andrew!! Actually, It didn't really fix the problem. I just changed Filezilla settings to always use Active mode instead of passive. This works. It allows me to use Filezilla client from Windows to access container's filesystem. It uses
compose service: ftp-server:
container_name: ftp-server
image: stilliard/pure-ftpd:hardened
ports:
- "21:21"
- "30000-30009:30000-30009"
environment:
PUBLICHOST: ${PUBLICHOST:-192.168.99.100}
FTP_USER_NAME: "test"
FTP_USER_PASS: "test"
FTP_USER_HOME: "/home/test"
restart: on-failure But in the test runner I'm trying to implement this, only the first test passes FTP Driver
✓ return false when file doesn't exists (71ms)
✖ return true when file exists (5s)
✖ get and put file content (5s)
✖ append file content (5s)
✖ prepend file content (5s)
✖ delete file (5s)
✖ copy file (5s)
✖ move file (5s) If i ignore the FTP Driver
✓ return false when file doesn't exists (47ms)
✓ return true when file exists (62ms)
✓ get and put file content (56ms)
✓ append file content (124ms)
events.js:183
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at _errnoException (util.js:1022:11)
at TCP.onread (net.js:628:25) Filezilla logs now:
If I go to Filezilla client settings and change the default transfer mode to So finally, I went for So basically I found two problems. The first is that I can't use something like The second problem I find with this image, is some sort of timeout or connection limit when running tests. It would be good to let every param of the This is the project in which I'm trying to implement this image for running FTP tests: And this is the PR where I explain how to run the tests: Edit: I'll re-open this in case we start some sort of research in case we find a solution. But feel free to close it again anytime. |
Hi @Frondor, Thanks for the detailed information on this. Ref the 1st point about the IP, i'm just double checking but does your test connect to FTP via the docker-machine ip as well? & the 2nd point about changing the other parts of the Dockerfile, you sure can in your docker-compose file by setting the Our default is Hope this helps out. |
Same exact issue, here is how to reproduce:
Steps:
-- Now go to the host machine
Other Notes: |
This is not an actual issue, but a newbie question.
I want to use this image for running functional tests over a ftp server, but I don't really know how I can access to the server. I don't need any volumes for running the test cases.
docker-compose up -d
Output:
Now, I've mapped
docker-machine ip
to adev.local
host inhosts
file.If I try to log in using filezilla client with
test:test@dev.local
, I getIn the docs it says I can test the connection from the "host machine" but if I ssh into VirtualBox's boot2docker with
docker-machine ssh
and then runftp -p localhost 21
it says-sh: ftp: not found
.So...
test
user contents?/bin/ftp
?)This is my very first time working with FTP servers, so please, forgive my ignorance.
The text was updated successfully, but these errors were encountered: