Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List failed containers at aborted build #14

Open
solsson opened this issue Oct 26, 2016 · 0 comments
Open

List failed containers at aborted build #14

solsson opened this issue Oct 26, 2016 · 0 comments

Comments

@solsson
Copy link
Contributor

solsson commented Oct 26, 2016

We currently echo that we exit 1, but not why. Current code has no list of failing containers, just a count.

We cluld use our current docker ps filter with an added exited=0 to get all non-failing containers, and the failing ones would be test_containers that are not in that list.

Or to get failing directly we could use inspect with some template magic like docker inspect -f '{{if ne 0.0 .State.ExitCode }}{{.Name}} {{.State.ExitCode}}{{ end }}' $(docker ps -aq)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant