Skip to content
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

Easy way to run as different user (non-root). #27

Open
bukowa opened this issue Sep 5, 2020 · 3 comments
Open

Easy way to run as different user (non-root). #27

bukowa opened this issue Sep 5, 2020 · 3 comments

Comments

@bukowa
Copy link

bukowa commented Sep 5, 2020

Hello! Thanks for the project, i wonder what's the best way to run the container as a different user; for ex. while you already have the directories populated with files with custom gid/uid. Should the image respect that out-of-the box?

https://github.com/BytemarkHosting/docker-webdav/blob/master/2.4/docker-entrypoint.sh#L104
How could we easly swap port 80 ?

@bukowa
Copy link
Author

bukowa commented Sep 5, 2020

Maybe chown -R www-data:www-data "/var/lib/dav" shoul not be run if the directory already exists?

@qroac
Copy link

qroac commented Nov 21, 2020

I agree with @bukowa.
My use case is to use bytemark/webdav as DAV server providing access to the input folder of my document management system.
Thus, the DMS server needs write access to all uploaded documents. So it would be great to either set the dav servers UID to the UID owning the mounted data folder or make it configurable for better integration as helper service to other applications.

@bukowa
Copy link
Author

bukowa commented Nov 21, 2020

@qroac here is how i handled it, note: it's probably not secure

master...bukforks:user-port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants