-
Notifications
You must be signed in to change notification settings - Fork 40
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
Show why healthcheck_cmd is failing #129
Comments
Please make this happen. I'm so frustrated to blindly fixing my tox don't know why a container fails its healthcheck |
Im pretty sure the healthcheck results are stored in the docker logs, so when the healthcheck fails ask the container for the logs and output that as an error log. |
Hi @notzippy , Thank you for the response. |
@Nogias9x At the point in code that I referenced, the containers are still running and have not been removed. If I have time Ill submit a PR to demonstrate |
As of 5.0.0, once the status is unhealthy, tox-docker removes the containers by default. The output messages |
Description
Is there any way to show the output of the
healthcheck_cmd
? Like why it's failing?If not, it'd be great if we can have something like that.
Why it's important?
I want to perform an integration test on a container which take around 2 minutes to warm up. In case I have some issue with the healthcheck (hence the container) all I am left with is this cryptic message with not much information to actually debug the issue.
The text was updated successfully, but these errors were encountered: