Share via


RestartPolicy.Window Property

Definition

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.

Applies to