-
Notifications
You must be signed in to change notification settings - Fork 308
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
remoteUser in devcontainer.json doesn't work in corporate environment #2957
Comments
Hi, Turns out I hit the exact scenario as described by @clssn - my username does not exist in
it cost me 6 hours of dev time. You guys probably have a lot on your plate either way, but is there any small chance this could be fixed in, like, next year maybe? :D Or at least add a small disclaimer in the documentation, so guys like me stop wasting their time. |
As a note, there really isn't a great way to work around this. When trying to manually add the user to a container as suggested by the add non-root user doc, the Dockerfile needs the UID and GID to be passed in as build args. However, using the following devcontainer.json passes empty GID and UID varialbes so the build fails. The only solution I've come up with is to have developers manually edit the Dockerfile to use their UID and GID and not commit it.
|
Updating to use |
it is worked for me with version |
getent passwd error ret code 2 but sudo getent passwd success env: |
I have a problem with this change. Our setup: windows domain controller with opensuse linux hosts. User name on linux host has the following format: As a consequence, One of |
Issue Type: Bug
Reason: users are not listed in /etc/passwd because they are taken from a corporate domain controller via sssd.
Potential solution: use
id -u username
andid -g username
to determine the user's uid/gid.VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T17:50:03.709Z)
OS version: Linux x64 4.15.10-041510-generic
Fetching remote diagnostics for 'Dev Container: C++' failed.
The text was updated successfully, but these errors were encountered: