devcontainer.json does not honor configuration when containerUser is not set
- 主要言語
- Go
- スター
- 300
- フォーク
- 64
- 平均マージ
- 20分
- マージ済み PR(30日)
- 1
説明
We've found an issue where `devcontainer.json` does not work unless you force a `containerUser`.
I believe this is similar to .
I think this problem stems from:
* When `UserFromDockerfile` [does not find the user in the `Dockerfile`](https://github.com/coder/envbuilder/blob/55a0ba3515b70edb6d066e5dd5944c9805d9ecb2/devcontainer/devcontainer.go#L373), it calls [`userFromImage`](https://github.com/coder/envbuilder/blob/55a0ba3515b70edb6d066e5dd5944c9805d9ecb2/devcontainer/devcontainer.go#L437) to 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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
devcontainer/devcontainer.go の UserFromDockerfile と userFromImage から始め、リンクされている issue #457 と動作を比較します。containerUser なしで ENVBUILDER_INSECURE を有効にした devcontainer.json を使ってケースを再現します。開発環境が workaround なしで動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, go
- 領域
- devops
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100