devcontainers / devcontainers/cli

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

Offen
#329 2 Kommentare 2 Reaktionen 1 zugewiesene Person Beansprucht von @chrmarti Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
3k
Forks
457
Ø Merge
13 Std. 17 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.