devcontainers / devcontainers/cli

`devcontainer` fails to work with dockerimage's that use lowercase instructions

Đang mở
#329 2 bình luận 2 reaction 1 người được giao Được @chrmarti nhận Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Description
`devcontainer` cli fails to work with Dockerimages which uses lowercase instructions
Both, windows and linux environments are affected.

### Prerequirements
`devcontainer` cli version `0.26.1`

### Steps to reproduce
1. Create a folder
2. Create `.devcontainer/` folder
3. Add to `.devcontainer/` the `devcontainer.json` with the following content
```json
{
"dockerFile": "Dockerfile"
}
```
5. Add to `.devcontainer/` the `Dockerfile` with the following content
```Dockerfile
from alpine:latest
````
7. Run `devcontainer up --workfolder .`

### Expected result
No errors are generated

### Actual result
An error is generated
![image](https://user-images.githubusercontent.com/24370515/208528015-5e1eaf68-3825-43ba-ae98-aa3ee4c5210e.png)

### Additional details
Here is a repo that demonstrates the bug
https://github.com/BusHero/devcontainer-bug-docker-lowercase-commands

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

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.