Skip to content

Commit 2a188e6

Browse files
committed
Add a workaround for error "Status 500: unable to find user ubuntu: no matching entries in passwd file" when build dev container in CLion
Clion tries to read the local /etc/password when building to change the UID of ther user in the container to the one from outside. If your /etc/passwd does not have this entry, it will fail to build. Comment this in if you do want to use the dev container CLion (at least CLion 2024.3.4, Build #JBC-243.25659.42. It is reported to Jetbrains).
1 parent 99585fe commit 2a188e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,8 @@
2929

3030
// Sudo password "ubuntu"
3131
"remoteUser": "ubuntu"
32+
// This might be needed when you do not have a local user called ubuntu but your dev container implementation
33+
// tries to find it in the local /etc/passwd and fails to build your container.
34+
// The default is true.
35+
//,"updateRemoteUserUID": false
3236
}

0 commit comments

Comments
 (0)