devcontainers / devcontainers/ci

Improve error output

Open
#185 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
496
Forks
101
PR merge metrics
No merged PRs in 30d

Description

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.

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.