-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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: Allow passing $DOCKER_USER to set the username in the container #2001
Conversation
9448272
to
e73b360
Compare
At first glance, this looks fantastic! It solves a definitely minor but important problem. Thanks @nhooyr! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The entrypoint lgtm but when I run this I get:
fixuid: user 'coder' does not exist
We probably just need to update the fixuid config I imagine?
88e33a5
to
d4828ae
Compare
a123f29
to
1d415f3
Compare
1d415f3
to
8eb39e3
Compare
Should be good now. |
7bac1d6
to
8317b98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New changes look good. When I exec
into the container I'm getting unable to find user coder: no matching entries in passwd file
. Is it the coder
line in /etc/sudoers.d/nopasswd
, maybe?
Actually no I see that gets deleted. |
Weird. 🤔 |
Can confirm the exec issue, debugging. |
Ah, you need to set pass |
Needs to be reflected in the documentation and the dockerhub description now. Closes #881
This way, building a standalone release locally and putting it in the release contianer for testing is less likely to break.
8317b98
to
4b7c2ea
Compare
Ahhhhh yup that worked! Now I'm getting
Is that happening to you? |
Huh, no, my shell opened fine. |
i.e |
We discussed on slack and the error is unrelated to this PR. |
Needs to be reflected in the documentation and the dockerhub description
now.
Closes #881
cc @avaidyam