-
Notifications
You must be signed in to change notification settings - Fork 39
Show why healthcheck_cmd is failing #129
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
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 |
Is there any workaround to display the output using tox-docker-4.1.0? I am working with a project that cannot upgrade at the moment due to a feature removed from tox after version tox-3.28.0 |
This is an interesting idea, and probably doable. I'd accept a PR which adds this behavior. In the meantime as a workaround, you can use |
Should the dont-stop option work here? I tried that before asking about a workaround because it didn't work for me. I couldn't see the container when listing all for an id to inspect |
I think it should. I’m guessing from yo ur reply that it doesn’t — we should probably consider that a bug. |
I will confirm and let you know |
Uh oh!
There was an error while loading. Please reload this page.
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: