-
-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I change server port 21 to other port(e.g. 11121) #127
Comments
Hey @jujis008 I've tested your example file and it looks like the I've found the following link which seems to suggest the port mapping doesn't work with network_mode: host Hope this helps. |
Exactly as you said, I changed network_mode type to default(bridge) but got another problem, I connected to localhost 12321, trying to execute a command got an error. Remote system type is UNIX. |
Ah no worries, this error happens when pure-ftpd can't bind the address, try adding the following to the environment section: |
Yes, I did, but the same thing happened.BTW, I'm using ubuntu OS. |
That's cool, I'm on ubuntu too. |
Thank you stilliard~, here is the compose file services: volumes: |
Hi @jujis008 Sorry I missed your reply here. Not sure if you resolved this issue yourself in the end but looking through I've not seen Otherwise, my other suggestion is to try the compose example in the repo: https://github.com/stilliard/docker-pure-ftpd/blob/master/docker-compose.yml |
I running docker-compose with the configuration file:
`services:
ftp:
image: stilliard/pure-ftpd:hardened
environment:
- FTP_USER_NAME=test
- FTP_USER_PASS=abcd
- FTP_USER_HOME=/home/test
volumes:
- test-data:/home/test
ports:
- "12321:21"
- "30000-30009:30000-30009"
network_mode: host
restart: unless-stopped`
when I run up server still running at port 21.
How can I change to my specific port?
The text was updated successfully, but these errors were encountered: