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

Support for healthcheck start-interval #651

Open
cfstcyr opened this issue Oct 9, 2024 · 0 comments
Open

Support for healthcheck start-interval #651

cfstcyr opened this issue Oct 9, 2024 · 0 comments

Comments

@cfstcyr
Copy link

cfstcyr commented Oct 9, 2024

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

Description

The start interval is an option introduced in Docker 25.0.

The docker_container healthcheck schema is missing the start_interval in order to reflect the Docker API.

New or Affected Resource(s)

  • docker_container

Potential Terraform Configuration

resource "docker_container" "my-image" {
  # ...
  healthcheck {
    test = ["CMD", "curl", "-f", "http://localhost:3000"]
    interval = "1m"
    start_interval = "2s"
  }
}

References

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

No branches or pull requests

1 participant