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

updateRemoteUserUID has no effect #874

Open
cadojo opened this issue Aug 21, 2024 · 1 comment
Open

updateRemoteUserUID has no effect #874

cadojo opened this issue Aug 21, 2024 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@cadojo
Copy link

cadojo commented Aug 21, 2024

When using this CLI, the container or remote user's UID and GID are not updated. This issue is documented in microsoft/vscode-remote-release#10030, but I think the core issue might be located here. I have an example repository up on GitHub. Steps to reproduce are below. Am I missing something in my configuration, or is this a bug?

git clone https://github.com/cadojo/devcontainer-uid-example
id
cd devcontainer-uid-example
devcontainer up --workspace-folder . --remove-existing-container --build-no-cache
devcontainer exec --workspace-folder . id

I see the following text on containers.dev... does this mean that on MacOS, or Windows, there is no way to sync the container user's UID and GID with the local user's?

On Linux, if containerUser or remoteUser is specified, the user’s UID/GID will be updated to match the local user’s UID/GID to avoid permission problems with bind mounts. Defaults to true.

@chrmarti
Copy link
Contributor

This only applies on Linux. Windows doesn't have Unix-like UIDs/GIDs. On macOS you would get the UID/GID mapped by Docker Desktop, maybe you are using something else?

@chrmarti chrmarti self-assigned this Aug 21, 2024
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants