coder / coder/envbuilder

devcontainer.json does not honor configuration when containerUser is not set

Đang mở
#483 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
300
Fork
64
Merge trung bình
20 phút
Pull request đã merge (30 ngày)
1

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu trong devcontainer/devcontainer.go tại UserFromDockerfile và userFromImage, sau đó so sánh hành vi với issue #457 được liên kết. Tái hiện trường hợp bằng devcontainer.json không có containerUser và bật ENVBUILDER_INSECURE; hoàn tất khi môi trường phát triển hoạt động mà không cần workaround.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
docker, go
Lĩnh vực
devops
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.