Skip to content

Commit 63d0949

Browse files
committed
Add optional workaround for bug with non-existing local user ubuntu to devcontainer.json
Some IDEs (looking at you, CLion) throw an error when building the container and can't find a local user named ubuntu in /etc/passwd. Disable updating the user ID in those cases to fix the build issue. A manual UID change using Docker run arguments might be needed in that case when your local user has a UID != 1000.
1 parent 316dffe commit 63d0949

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.devcontainer.json

+4
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,8 @@
3434
}
3535
},
3636
"remoteUser": "ubuntu"
37+
// This might be needed when you do not have a local user called ubuntu but your dev container
38+
// implementation tries to find it in the local /etc/passwd and fails to build your container.
39+
// The default is true.
40+
//,"updateRemoteUserUID": false
3741
}

0 commit comments

Comments
 (0)