Skip to content
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

Open
enx1998 opened this issue May 25, 2022 · 6 comments
Open

Error build container #4

enx1998 opened this issue May 25, 2022 · 6 comments

Comments

@enx1998
Copy link

enx1998 commented May 25, 2022

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

@Adesin-fr
Copy link

Same for me...
Have you solved your issue ?

@neoighodaro
Copy link
Owner

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

@kevmonzon
Copy link

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
 #.....

@neoighodaro neoighodaro closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2023
@jorguerra
Copy link

I have the same problem

@neoighodaro
Copy link
Owner

Can’t seem to recreate this. Does anyone have any info about their host machine?

@neoighodaro neoighodaro reopened this Sep 19, 2023
@neoighodaro
Copy link
Owner

neoighodaro commented May 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants