-
Notifications
You must be signed in to change notification settings - Fork 123
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 Stopped Containers using docker_host_info #535
Comments
Can't you use |
That does seem to work, but:
But thanks for the info @felixfontein, might help me work around it better. |
This is a community project, feel free to create a PR to add such an example :)
An "all" option (like in
You can also look here for a more authoritative source: https://github.com/moby/moby/blob/13b36ce06352ff9853ee5dc2ef1d5b33b85e17f4/container/state.go#L147-L158 |
I've implemented an |
Oh, thank you a lot @felixfontein ! |
It certainly is, if that user is very important to you! :D |
That user is me :) |
SUMMARY
There is no way I found to get the list of stopped containers.
This should be possible with some kind of module option.
ISSUE TYPE
COMPONENT NAME
docker_host_info
ADDITIONAL INFORMATION
For my molecule test suite, I want to make sure that no containers crashed, or stopped for any other reasons.
However, when I stopped containers, verification still passed, because stopped containers were not included in the results.
To achieve this I used the following code:
The text was updated successfully, but these errors were encountered: