Add remoteUser to .devcontainer to fix JetBrains IDE support (#728) - #729
Open
bedrich-schindler wants to merge 1 commit into
Open
Add remoteUser to .devcontainer to fix JetBrains IDE support (#728)#729bedrich-schindler wants to merge 1 commit into
remoteUser to .devcontainer to fix JetBrains IDE support (#728)#729bedrich-schindler wants to merge 1 commit into
Conversation
Opening the project in WebStorm using the Dev Containers "Clone" mode
failed during the IDE remote agent bootstrap with:
chgrp: invalid group: '1000:1000'
The `chgrp` call is issued by the JetBrains dev-container helper while it
fixes the ownership of its remote agent files. With no user declared in
`devcontainer.json`, WebStorm falls back to the Compose `user:` directive
(`${COMPOSE_UID}:${COMPOSE_GID}`) and passes the literal `1000:1000`
string to `chgrp`, which accepts only a group, never a `uid:gid` pair.
Declaring `"remoteUser": "developer"` makes WebStorm resolve the user via
`/etc/passwd` inside the container instead. This is safe on all
platforms: `fixuid` rewrites the `developer` entry at container start to
match the uid:gid the container runs as, and `devcontainer.json` is not
read outside the dev-container workflow (plain `docker compose up`,
terminals, CI), so nothing else is affected.
adamkudrna
approved these changes
Aug 17, 2026
| "../docker-compose.yml" | ||
| ], | ||
| "service": "devcontainer", | ||
| "remoteUser": "developer", |
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Opening the project in WebStorm using the Dev Containers "Clone" mode failed during the IDE remote agent bootstrap with:
chgrp: invalid group: '1000:1000'
The
chgrpcall is issued by the JetBrains dev-container helper while it fixes the ownership of its remote agent files. With no user declared indevcontainer.json, WebStorm falls back to the Composeuser:directive (${COMPOSE_UID}:${COMPOSE_GID}) and passes the literal1000:1000string tochgrp, which accepts only a group, never auid:gidpair.Declaring
"remoteUser": "developer"makes WebStorm resolve the user via/etc/passwdinside the container instead. This is safe on all platforms:fixuidrewrites thedeveloperentry at container start to match the uid:gid the container runs as, anddevcontainer.jsonis not read outside the dev-container workflow (plaindocker compose up, terminals, CI), so nothing else is affected.