You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Beacuse an issue with nginx:alpine a recent update in /nginx/Dockerfile made www-data user and group to id 82. This makes file permission conflicts between running containers, e.g. when same files needed to read/write both by Nginx (e.g. FastCGI caching) and php-fpm (to purge Nginx cache files).
Expected Behavior:
Nginx image should have the default ids (1000) for both user www-data and group www-data like other containers (php-fpm, workspace, etc...)
Context information:
1bfbe9a99ac66a06f6eea792b851eca54c74296b
Quickfix:
# Change 82 to 1000RUN set -x ; \
addgroup -g 1000 -S www-data ; \
adduser -u 1000 -D -S -G www-data www-data && exit 0 ; exit 1
# Let usermod, groupmod available in alpine and change the idsRUN apk add --no-cache shadow && usermod -u 1000 -o www-data && groupmod -g 1000 -o www-data
Looking at the console log while building, addgroup will be skipped, because www-data already exists (known issue) so we need to change its id with groupmod. However the user can be added. Running usermod wouldn't be necessary, because it was just created with id 1000, but it won't hurt... (just in case for further base image versions).
Best solution would be adding id ARGs for Nginx in /nginx/Dockerfile and in /env-example like php-fpm already has:
PHP_FPM_PUID=1000
PHP_FPM_PGID=1000
The text was updated successfully, but these errors were encountered:
Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs. Thank you for your contributions ❤️.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
Description:
Beacuse an issue with
nginx:alpine
a recent update in/nginx/Dockerfile
madewww-data
user and group to id 82. This makes file permission conflicts between running containers, e.g. when same files needed to read/write both by Nginx (e.g. FastCGI caching) andphp-fpm
(to purge Nginx cache files).Expected Behavior:
Nginx image should have the default ids (1000) for both user
www-data
and groupwww-data
like other containers (php-fpm, workspace, etc...)Context information:
Quickfix:
Looking at the console log while building,
addgroup
will be skipped, becausewww-data
already exists (known issue) so we need to change its id withgroupmod
. However the user can be added. Running usermod wouldn't be necessary, because it was just created with id 1000, but it won't hurt... (just in case for further base image versions).Best solution would be adding id ARGs for Nginx in
/nginx/Dockerfile
and in/env-example
likephp-fpm
already has:The text was updated successfully, but these errors were encountered: