devcontainers / devcontainers/ci
Improve error output
- Lingua principale
- TypeScript
- Stelle
- 497
- Fork
- 102
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
In #184, the output from the Azure DevOps task was not especially helpful in identifying the underlying issue:
```
About to run devcontainer exec --workspace-folder /home/vsts/work/1/s bash -c echo "hi"
### ERROR: Dev container exec: Command failed: docker ps -q -a --filter label=devcontainer.local_folder=/home/vsts/work/1/s (exit code: undefined)
An error occurred running a command in the container.
##[error]Command failed: docker ps -q -a --filter label=devcontainer.local_folder=/home/vsts/work/1/s
```
It turned out to be a command run as part of the postCreateCommand step that broke the docker permissions, but there was nothing output in the logs that gave any indication of this.
It would be good to see whether there is an exit code and or output from the `docker` command that could be output to aid debugging in future.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando il modo in cui l'attività Azure DevOps gestisce il comando `docker ps` che non riesce e il percorso `postCreateCommand` descritto nell'issue. Riproduci l'errore, se possibile, e analizza come vengono registrati gli errori dei comandi; il lavoro è completato quando i log includono il codice di uscita disponibile e l'output del comando Docker per spiegare gli errori.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, docker, typescript
- Ambito
- ci-cd, devops
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100