RestartPolicy.Window Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the time window for evaluating the restart conditions in a Docker service restart policy.
[YamlDotNet.Serialization.YamlMember(Alias="window")]
public string? Window { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="window")>]
member this.Window : string with get, set
Public Property Window As String
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
This property specifies the duration (e.g., in seconds or any supported time format) during which restart attempts are counted towards the maximum attempts allowed. If the service exits and restarts within this specified window, it contributes to the count of restart attempts under the restart policy.