devcontainers / devcontainers/cli

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

Open
#329 2 comments 2 reactions 1 assignee Claimed by @chrmarti View on GitHub
bug
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.