Docker-Webstack
Docker-Webstack copied to clipboard
Issue: UID/GID Changes Due to New klogd User in Alpine Base Image
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:
After the klogd user was added:
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