Skip to content

Split Healthcheck start interval into its own default value as per docs #47648

@saltydk

Description

@saltydk

Description

Is there a particular reason that the start interval inherits the value from regular interval?

moby/daemon/health.go

Lines 253 to 255 in a33b302

probeInterval := timeoutWithDefault(c.Config.Healthcheck.Interval, defaultProbeInterval)
startInterval := timeoutWithDefault(c.Config.Healthcheck.StartInterval, probeInterval)
startPeriod := timeoutWithDefault(c.Config.Healthcheck.StartPeriod, defaultStartPeriod)

Docs indicate that the default is 5 seconds: https://docs.docker.com/reference/dockerfile/#healthcheck

This request is to have it defined as its own default value as per the docs.

I apologize if I have misread the code as I am not a Golang programmer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/daemonCore Engineexp/beginnerkind/bugfixPR's that fix bugskind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions