Open enx1998 opened 2 years ago
Same for me... Have you solved your issue ?
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
=> [8/9] RUN set -eux; chmod +x /usr/local/bin/install-php-extensions && apk --update add --no-cache tzdata gnupg su-exec zip unzip git supervisor sqlite libcap nodejs npm & 537.1s
=> ERROR [9/9] RUN rm -rf /usr/share/php /usr/share/php8 /usr/src/* /usr/local/bin/phpdbg /usr/local/bin/install-php-extensions /var/lib/apt/lists/* /tmp/* /var/tmp/* && setca 7.0s
------
> [9/9] RUN rm -rf /usr/share/php /usr/share/php8 /usr/src/* /usr/local/bin/phpdbg /usr/local/bin/install-php-extensions /var/lib/apt/lists/* /tmp/* /var/tmp/* && 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/UTC /etc/localtime && echo UTC > /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:
#0 0.623 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
#0 2.858 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz
#0 3.428 fetch http://dl-2.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
#0 6.053 (1/2) Installing linux-pam (1.5.1-r1)
#0 6.291 (2/2) Installing shadow (4.13-r0)
#0 6.914 Executing busybox-1.33.1-r7.trigger
#0 6.922 OK: 199 MiB in 103 packages
#0 6.987 usermod: invalid user ID 'www-data'
------
failed to solve: executor failed running [/bin/sh -c rm -rf /usr/share/php /usr/share/php8 /usr/src/* /usr/local/bin/phpdbg /usr/local/bin/install-php-extensions /var/lib/apt/lists/* /tmp/* /var/tmp/* && 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]: exit code: 3
DockerFile
version: '3'
services:
laravel.test:
build:
context: ./docker/8.1-alpine
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: kevmonzon/brat
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
volumes:
- '.:/var/www/html'
networks:
- sail
#.....
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:
RUN WWWUSER=$(id -u 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: @.***>
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