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

Docker build errors on start #4

Closed
rfay opened this issue Jul 31, 2024 · 2 comments
Closed

Docker build errors on start #4

rfay opened this issue Jul 31, 2024 · 2 comments

Comments

@rfay
Copy link

rfay commented Jul 31, 2024

I got all these errors on ddev restart:

#24 [diffy 2/2] RUN (groupadd --gid 20 "diffy" || groupadd "diffy" || true) && (useradd  -l -m -s "/bin/bash" --gid "diffy" --comment '' --uid 501 "diffy" || useradd  -l -m -s "/bin/bash" --gid "diffy" --comment '' "diffy" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "diffy" || useradd -l -m -s "/bin/bash" --comment '' diffy )
#24 0.291 groupadd: group 'diffy' already exists
#24 0.293 groupadd: group 'diffy' already exists
#24 0.300 useradd: user 'diffy' already exists
#24 0.301 useradd: user 'diffy' already exists
#24 0.303 useradd: user 'diffy' already exists
#24 0.304 useradd: user 'diffy' already exists
#24 ERROR: process "/bin/bash -c (groupadd --gid $gid \"$username\" || groupadd \"$username\" || true) && (useradd  -l -m -s \"/bin/bash\" --gid \"$username\" --comment '' --uid $uid \"$username\" || useradd  -l -m -s \"/bin/bash\" --gid \"$username\" --comment '' \"$username\" || useradd  -l -m -s \"/bin/bash\" --gid \"$gid\" --comment '' \"$username\" || useradd -l -m -s \"/bin/bash\" --comment '' $username )" did not complete successfully: exit code: 9
------
 > [diffy 2/2] RUN (groupadd --gid 20 "diffy" || groupadd "diffy" || true) && (useradd  -l -m -s "/bin/bash" --gid "diffy" --comment '' --uid 501 "diffy" || useradd  -l -m -s "/bin/bash" --gid "diffy" --comment '' "diffy" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "diffy" || useradd -l -m -s "/bin/bash" --comment '' diffy ):
0.291 groupadd: group 'diffy' already exists
0.293 groupadd: group 'diffy' already exists
0.300 useradd: user 'diffy' already exists
0.301 useradd: user 'diffy' already exists
0.303 useradd: user 'diffy' already exists
0.304 useradd: user 'diffy' already exists
------
', stderr='failed to solve: process "/bin/bash -c (groupadd --gid $gid \"$username\" || groupadd \"$username\" || true) && (useradd  -l -m -s \"/bin/bash\" --gid \"$username\" --comment '' --uid $uid \"$username\" || useradd  -l -m -s \"/bin/bash\" --gid \"$username\" --comment '' \"$username\" || useradd  -l -m -s \"/bin/bash\" --gid \"$gid\" --comment '' \"$username\" || useradd -l -m -s \"/bin/bash\" --comment '' $username )" did not complete successfully: exit code: 9'

It's not clear to me from the Dockerfile why this would happen.

@rfay
Copy link
Author

rfay commented Jul 31, 2024

I also don't know why it's adding the diffy user instead of rfay

@rfay
Copy link
Author

rfay commented Aug 2, 2024

Worked without any trouble with version 0.0.9, thanks!

@rfay rfay closed this as completed Aug 2, 2024
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