-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
The nginx config specifies the user "nginx", but this user does not exist on a clean base installation for the host OS so Docker maps it to some other user id. Somehow between 1.10 and 1.12 this seems to have changed from 104 to 101 so that caused file permission errors because 101 was "systemd-network" on the host and 104 was "syslog" (Ubuntu host).
Is there some way to guaranatee the uid for "nginx" doesn't change without having to add users directly on the host, since having to do this defeats the purpose of Docker.
Perhaps a simple solution would be for the docker entrypoint to chown the /var/cache/nginx and /var/log/nginx directories to "nginx"?
Metadata
Metadata
Assignees
Labels
No labels