-
-
Notifications
You must be signed in to change notification settings - Fork 325
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 give a user access to a docker volume or path outside the ftp container? #148
Comments
Hey @jaywork2020 ! Thanks glad it's useful for you. Sure thing, the workflow generally for this is to have your wordpress container expose the folder you need through a volume, and then expose the same volume to the ftp docker container. Here's an example doing this using docker compose: https://github.com/stilliard/docker-pure-ftpd/wiki/Docker-stack-with-Wordpress-&-FTP Hope it helps. |
@stilliard Thank you for your help. Do I still create the user like this when mounting to a path on the server? Assume my volume is set like this
I attempted the above, but when trying to FTP into the server it fails. Here are the logs from the FTP attempt
How can I get this to work? |
Hi @jaywork2020 |
@stilliard Yes I did Here is how I create the ftpd_server using the composer file
I want the new user to FTP into |
Hi @jaywork2020 Does the same error happen if you set your ftp user to a non volume folder? Wondering if it's an issue ftping at all or just with the volumed folder. Thanks |
not sure if still an issue, but its open, so.... when mounting volumes in a docker file its when using so you need in ftp docker-compose.yml:
and in wordpress docker-compose.yml:
|
First of all, I want to thank you for this image.
I set it and and it seems to be working fine. But I need to give a user access files on the server not in the container
for example the following command creates a user called bob and gives him access to
/home/ftpusers/bob
inside the docker container.How can I give the user
bob
access to the/home/ftpusers/bob
path on the server not inside the container. Or to a docker volume.For example, I have another docker container running a wordpress site. I want to be able to FTP into the docker volume that is hosting the wordpress. In my case the WordPress for this container are located on
/data/mysitename/pubic_html
so I want bob to be able to connect using FTP and manage the files on/data/mysitename/pubic_html
.How can I give a user access to a docker volume or a server location instead on a location on the container?
The text was updated successfully, but these errors were encountered: