Skip to content

Dockerイメージのビルドがうまくいっていない #896

@Lucky3028

Description

@Lucky3028

ubuntu:24 にイメージが上がった後(#887)、以下エラーが出ていて、ビルドがうまくいっていない

#20 [linux/amd64 stage-1 3/3] RUN groupadd -g 1000 ubuntu &&     useradd -m -s /bin/bash -u 1000 -g 1000 ubuntu
#20 0.131 groupadd: group 'ubuntu' already exists
#20 ERROR: process "/bin/sh -c groupadd -g $GID $GROUPNAME &&     useradd -m -s /bin/bash -u $UID -g $GID $USERNAME" did not complete successfully: exit code: 9

#21 [linux/arm64 stage-1 3/3] RUN groupadd -g 1000 ubuntu &&     useradd -m -s /bin/bash -u 1000 -g 1000 ubuntu
#21 CANCELED
------
 > [linux/amd64 stage-1 3/3] RUN groupadd -g 1000 ubuntu &&     useradd -m -s /bin/bash -u 1000 -g 1000 ubuntu:
0.131 groupadd: group 'ubuntu' already exists
------
Dockerfile:25
--------------------
  24 |     ARG GID=1000
  25 | >>> RUN groupadd -g $GID $GROUPNAME && \
  26 | >>>     useradd -m -s /bin/bash -u $UID -g $GID $USERNAME
  27 |     
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c groupadd -g $GID $GROUPNAME &&     useradd -m -s /bin/bash -u $UID -g $GID $USERNAME" did not complete successfully: exit code: 9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions