Skip to content

Issue: UID/GID Changes Due to New klogd User in Alpine Base Image #67

@maxvisser

Description

@maxvisser

The Alpine base image recently added a new user called klogd. As a result, both the php and nginx users were assigned new UID/GIDs, causing inconsistencies.


Before the klogd user was added:
Image

After the klogd user was added:
Image


Since we rely on an NFS share, which requires consistent user IDs, the file permissions broke after this change.

Suggested Solution:
To ensure this issue doesn't happen again, we can manually set the UID/GID for the php and nginx users to higher values like so:

    addgroup -S -g 1001 php \
    && adduser -S -u 1001 -G php php \
    && usermod -u 1000 nginx \
    && groupmod -g 1000 nginx

This will ensure consistent user IDs for both php and nginx, even if new users are added in the base image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions