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

[Bug] ERROR: RUN groupadd --gid 0 appflowy #5137

Open
Kizai opened this issue Apr 15, 2024 · 0 comments
Open

[Bug] ERROR: RUN groupadd --gid 0 appflowy #5137

Kizai opened this issue Apr 15, 2024 · 0 comments

Comments

@Kizai
Copy link

Kizai commented Apr 15, 2024

Bug Description

# docker-compose build --build-arg uid=$(id -u) --build-arg gid=$(id -g)
WARN[0000] The "DISPLAY" variable is not set. Defaulting to a blank string.
[+] Building 159.9s (11/38)                                                                                           docker:default
 => [app internal] load build definition from Dockerfile                                                                        9.0s
 => => transferring dockerfile: 32B                                                                                             0.0s
 => [app internal] load .dockerignore                                                                                           6.1s
 => => transferring context: 34B                                                                                                0.0s
 => [app internal] load metadata for docker.io/archlinux/archlinux:latest                                                       5.4s
 => [app internal] load metadata for docker.io/archlinux/archlinux:base-devel                                                   6.3s
 => [app internal] load build context                                                                                          11.4s
 => => transferring context: 485.06kB                                                                                           6.6s
 => [app stage-1 1/8] FROM docker.io/archlinux/archlinux@sha256:7ce429d2b4b7024036d9965e140a3a696b5a4155b4a50c2436af24f54801eb  0.0s
 => [app builder  1/25] FROM docker.io/archlinux/archlinux:base-devel@sha256:7dc642b90d157e65fc7bf45d7eb48007c157b1620f215c09  99.2s
 => => resolve docker.io/archlinux/archlinux:base-devel@sha256:7dc642b90d157e65fc7bf45d7eb48007c157b1620f215c09fdb11a424bf594c  0.0s
 => => sha256:7dc642b90d157e65fc7bf45d7eb48007c157b1620f215c09fdb11a424bf594c4 661B / 661B                                      0.0s
 => => sha256:73b793f6523b2e97d3965e2eec7ba83a67fa284363885142a12865800ce95a20 4.45kB / 4.45kB                                  0.0s
 => => sha256:aaeac0259c3d810e1a7f7c802e0e0b1ac5aafbe813b7b80b37612d203cfbc5df 9.49kB / 9.49kB                                  0.0s
 => => sha256:9ff60dc2b64b28b125c429316fb5ce6ad11c943ca7db3254a13c581653596b56 273.51MB / 273.51MB                             37.2s
 => => extracting sha256:9ff60dc2b64b28b125c429316fb5ce6ad11c943ca7db3254a13c581653596b56                                      13.0s
 => => extracting sha256:aaeac0259c3d810e1a7f7c802e0e0b1ac5aafbe813b7b80b37612d203cfbc5df                                       4.7s
 => CACHED [app stage-1 2/8] RUN pacman -Syyu --noconfirm                                                                       0.0s
 => [app stage-1 3/8] RUN pacman -S --noconfirm xdg-user-dirs gtk3 libkeybinder3 &&     pacman -Scc --noconfirm                98.2s
 => ERROR [app stage-1 4/8] RUN groupadd --gid 0 appflowy                                                                      35.1s
 => [app builder  2/25] RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo                                          35.0s
------
 > [app stage-1 4/8] RUN groupadd --gid 0 appflowy:
30.66 groupadd: GID '0' already exists
------
failed to solve: executor failed running [/bin/sh -c groupadd --gid $gid $user]: exit code: 4

How to Reproduce

可能需要在NAS DSM7.1系统才能复现

Expected Behavior

执行构建镜像命令docker-compose build --build-arg uid=$(id -u) --build-arg gid=$(id -g)报错:

 => ERROR [app stage-1 4/8] RUN groupadd --gid 0 appflowy                                                                      35.1s
 => [app builder  2/25] RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo                                          35.0s
------
 > [app stage-1 4/8] RUN groupadd --gid 0 appflowy:
30.66 groupadd: GID '0' already exists
------
failed to solve: executor failed running [/bin/sh -c groupadd --gid $gid $user]: exit code: 4

Operating System

群晖DSM7.1

AppFlowy Version(s)

v0.5.4

Screenshots

No response

Additional Context

No response

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

1 participant