spujadas / lighttpd-docker

Docker image for lighttpd, a secure, fast, compliant, and flexible web server
MIT License
59 stars 66 forks source link

Anyway to mount the files under a separate user? #5

Closed jwheeler91 closed 5 years ago

jwheeler91 commented 5 years ago

Anyway to mount the files under a separate user?

I mount this dirs: /etc/lighttpd /var/www/localhost/htdocs

But i like to specify a uid & gid

spujadas commented 5 years ago

Not quite sure what you're after, but generally speaking you will need to extend the image to alter file ownerships within the container. Closing as this isn't an issue with the image, but here are some pointers you may find useful: https://denibertovic.com/posts/handling-permissions-with-docker-volumes/ https://www.berthon.eu/2018/containers-volumes-and-file-permissions/ http://www.inanzzz.com/index.php/post/q1rj/running-docker-container-with-a-non-root-user-and-fixing-shared-volume-permissions-with-dockerfile