mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #1226] Add UID and GID variable #997
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#997
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mgutt on GitHub (Jul 9, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/1226
In Unraid its important of being able to set UID and GID to 99:100. I tried it through the following docker flag:
But the NPM docker container isn't happy with it:
Some containers solve this by using additional variables:
https://hub.docker.com/r/linuxserver/mariadb#:~:text=boot%20and%20setup.-,Usage,-Here%20are%20some
@joshkay commented on GitHub (Jul 19, 2022):
@mgutt did you ever find a workaround for this?
@mgutt commented on GitHub (Jul 19, 2022):
Nope.
@rogierlommers commented on GitHub (Dec 24, 2022):
I would love to have this working indeed.
Also see my bug report: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2503
@rogierlommers commented on GitHub (Dec 24, 2022):
Please also see this: https://github.com/jlesage/docker-nginx-proxy-manager/issues/271
I don't know what repo that is, but it does support docker --user params.
Personally I prefer to use this (original) one, but I do need to save data files as my own user.
@ghost commented on GitHub (Jan 24, 2023):
There is a
s6-applyuidgiddirective to do this after init. Thejslesagerepo seems to be quite a bit behind, also would not recommend using another source for your reverse proxy.Writing everything as root on the host can interfere with common backup strategies, RAID setups and remote monitoring. Would love to see this get picked up soon.
@rogierlommers commented on GitHub (Jan 24, 2023):
Yes me too; I don't want to use the jslesage repo either. So for me it's a must-have. Unfortunately I don't have the time nor skills to apply it in this repo 🙁.
@agorgl commented on GitHub (Feb 2, 2023):
Waiting for this too!
@vdrover commented on GitHub (Apr 21, 2023):
This is working for me: https://hub.docker.com/r/jc21/nginx-proxy-manager
@Moooartin commented on GitHub (Sep 18, 2023):
Sorry to re-open this thread but the issue has changed a bit...
Since the environment have been added, The
PUIDandPGIDwork fine for the2.10.2and2.10.3but it is not working with the latest2.10.4.Has it been removed?
@NeoMod commented on GitHub (Oct 31, 2023):
thank you @vdrover. I can confirm this is working fine on latest and solved the bunch of errors about file permission at startup under unraid.
@malavolti commented on GitHub (Dec 14, 2024):
Dear @jc21, @vdrover ,
I want to run NPM with Docker and its Rootless mode.
This is my
docker-compose.yml:and I get:
But folders get different UID and GID:
can you tell me why, please?
Thank you so much!
Marco
@vdrover commented on GitHub (Dec 15, 2024):
Just a bit of a stab in the dark, but have you added your user to the docker group?
https://docs.docker.com/engine/install/linux-postinstall/
@malavolti commented on GitHub (Dec 15, 2024):
Yes, I've added.
@malavolti commented on GitHub (Dec 22, 2024):
https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3252
I report also this issue that is rely on my problem.
Any help about this @vdrover @jc21 ? Thank you so much!
@ashipaek0 commented on GitHub (Dec 28, 2024):
Seems this issue where it does not respect the PGUID set and changes the folder ownership on boot is causing SSL acquisition to fail
before starting container
after starting container