Open kjkent opened 1 year ago
Mainsail is (for the most part) just a static web app, so that container includes nginx to act as a web server. Nginx implements it's own privilege dropping (to the nginx
user) once it has started, as controlled by the user
directive in it's config.
Requested feature:
As per my admittedly limited understanding: Within Docker containers, processes run as root by default, but Docker allows for running in-container processes as a less privileged UID/GID combo.
This has previously been accomplished by some image developers by passing the desired UID/GID via an environment variable, but docker now has the functionality to explicitly pass a
user
parameter to eitherdocker run
or within a Docker Compose file.However, this
user
parameter does not currently work with the current mainsail edge image, producing logs that implicate docker-entrypoint.sh and nginx.Solves the following problem:
As far as I'm aware, this is good security practice and something many mainstream images allow.
Additional information: