Skip to content

about nginx-unprivileged #153

Answered by alessfg
xwen222 asked this question in Q&A
Aug 10, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

All the changes that have been made to this image have been made to ensure that the image will run in unprivileged environments. The easiest/safest way to achieve this in a container involves moving most of the files/processes/paths/etc that require privileged rights to the /tmp directory, since that directory is traditionally reserved for temporary files and most "restricted" environments allow r/w access to it. As long as you use the container the way it's meant to be used and do not run any additional software, running NGINX from that directory should not be an issue.

Now that these have gone to the tmp folder, will the files be lost for long runs?

Nope, unless you delete/remove the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xwen222
Comment options

Answer selected by alessfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants