Skip to content

GenericContainer#isHealthy throws NPE if the healthcheck is not set #2205

@pivovarit

Description

@pivovarit

Looks like health state is no longer part of the docker inspect response (api v1.40).

image

Looks like docker-java is mistakenly returning it in the response so we can't rely on that:
https://github.com/docker-java/docker-java/blob/066f268fa4f88687a9e7a41ca5eeaa85d63d8455/docker-java-api/src/main/java/com/github/dockerjava/api/command/InspectContainerResponse.java#L336-L340


Reproducer: #2204

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions