Commit dc56c8a
committed
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.
1 parent ccf2101 commit dc56c8a
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
0 commit comments