Skip to content

Health check support #5609

@kzys

Description

@kzys

What is the problem you're trying to solve

containerd doesn't support healthcheck. While it keeps containerd small and focused, high-level container orchestrators such as Fargate and/or nerdctl need to implement health check to be compatible with Docker.

Describe the solution you'd like

Support health check based on labels as like the restart plugin.

Additional context

I'm on the fence regarding this feature.

Pros

  • For nerdctl, it allows the command to support the Compose spec and Docker-like experience, without having a long-living daemon-like process.
  • For Fargate, it has to have a long-living daemon-like process for other reasons. So the value of this feature is questionable.

Cons

  • Feature bloat. containerd itself doesn't have to be Docker-compatible.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions