Skip to content

[ECS/Fargate][bug]: Dockerfile healthcheck is ignored #1443

@paya-cz

Description

@paya-cz

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request

Using HEALTHCHECK instruction in Dockerfile is ignored by Fargate. The health status does not appear in the AWS Console, and the task will not get killed even if I make the healthcheck always fail. If I however setup the healthcheck in the task definition, it works fine and health status appears in the console as well.

Which service(s) is this request for?
Fargate

Are you currently working around this issue?

Duplicating healthcheck instruction via AWS CDK / Console does the trick.

Additional context
I use node.js v14, docker, and healthcheck process written in node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposedCommunity submitted issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions