devcontainer.json does not honor configuration when containerUser is not set
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start in devcontainer/devcontainer.go at UserFromDockerfile and userFromImage, then compare the behavior with the linked issue #457. Reproduce the case using devcontainer.json without containerUser and ENVBUILDER_INSECURE enabled; done means the development environment works without the workaround.
Written by the indexing model from the issue text.
Description
We've found an issue where devcontainer.json does not work unless you force a containerUser.
I believe this is similar to https://github.com/coder/envbuilder/issues/457.
I think this problem stems from:
- When
UserFromDockerfiledoes not find the user in theDockerfile, it callsuserFromImageto find it. - This uses the same code that #457 describes.
In our case, in development environments we set ENVBUILDER_INSECURE to be able to use registries without proper TLS, but with this issue, that does not work.
Our workaround is to set containerUser for now and avoid the issue.
- Dominant language
- Go
- Stars
- 300
- Forks
- 64
- Avg merge
- 20m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/envbuilder
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
coder/envbuilder#506 ·
-
bug envbuilder needs-investigation
Difficulty 4/5 3-5 days Newbie friendliness 35/100
coder/envbuilder#495 ·
-
envbuilder Feature
Difficulty 3/5 1-2 days Newbie friendliness 56/100
coder/envbuilder#492 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
coder/envbuilder#484 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
coder/envbuilder#481 · 1 comment ·
All issues in coder/envbuilder
Similar issues
-
area/dev-productivity area/disaster-recovery area/ipcei kind/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
kind/bug status/0-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
🤔 refinement needed
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
equinor/radix-operator#1979 ·