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

Add healthcheck-related fields to the container`s state #323

Closed
wants to merge 1 commit into from
Closed

Add healthcheck-related fields to the container`s state #323

wants to merge 1 commit into from

Conversation

andrey-yantsen
Copy link

What did you implement:

This PR adds support for deserializing of the Healthcheck fields in the docker inspect results (see API for the details).

I'm not sure about HealthStatus::Unknown. Still, I decided to add it to prevent panic when deserializing a response from a hypothetical future docker version, where new health statuses would be added.

How did you verify your change:

I've tried deserializing the docker inspect response, produced by a container with (and without) a health check. Also, I tried the deserialization with/without the chrono feature enabled.

@andrey-yantsen andrey-yantsen closed this by deleting the head repository Jan 19, 2023
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

Successfully merging this pull request may close these issues.

1 participant