Skip to content

Inconsistent user ids #218

@colinmollenhour

Description

@colinmollenhour

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions