diff --git a/pkg/api/container_health.go b/pkg/api/container_health.go new file mode 100644 index 00000000..b4818840 --- /dev/null +++ b/pkg/api/container_health.go @@ -0,0 +1,11 @@ +package api + +import "time" + +const ( + // defaultDockerHealthcheckInterval is the default Docker interval between health check runs. + defaultDockerHealthcheckInterval = 30 * time.Second + // defaultDockerHealthcheckRetries is the default Docker number of consecutive failures needed + // to consider the container unhealthy. + defaultDockerHealthcheckRetries = 3 +)