-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error build container #4
Comments
Same for me... |
Do you have more information about the host machine? I don't ha e enough information with your post. Does it also only happen for 8.1 |
happen to stumble upon on this repo and tried it, had the same error
DockerFile
|
I have the same problem |
Can’t seem to recreate this. Does anyone have any info about their host machine? |
Can you submit it as a PR?Neo IghodaroEngineering ManagerW: neoighodaro.comIMPORTANT: The contents of this email and any attachments are confidential. It is strictly forbidden to share any part of this message with any third party, without a written consent of the sender. If you received this message by mistake, please reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future.On May 19, 2024, at 9:22 AM, SerjoA ***@***.***> wrote:
you need to add this to your Dockerfile for that to work, i have had the same error like everyone else:
# Get the UID (user ID) of the www-data user
RUN WWWUSER=$(id -u www-data)
# Set permissions, create the 'sail' user, and adjust 'www-data'
RUN setcap "cap_net_bind_service=+ep" /usr/local/bin/php \
&& adduser --disabled-password --gecos "" -u 1337 -s /bin/sh -G www-data sail \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& chmod +x /usr/local/bin/start-container \
&& echo http://dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories \
&& apk --no-cache add shadow \
&& usermod -u $WWWUSER www-data # Use the stored UID
google gemini helped me solve this.
which after that still didnt work since php compilation of c files failed
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to use runtimes/8.1-alpine but the command
sail up
fails with the following error:usermod: invalid user ID 'www-data'
.Thansk, ENx
The text was updated successfully, but these errors were encountered: