Share via


Service.Restart Property

Definition

Specifies the restart policy for the container. This property determines how the container should behave in case of a crash or termination. Common values include "no", "always", "on-failure", and "unless-stopped".

[YamlDotNet.Serialization.YamlMember(Alias="restart")]
public string? Restart { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="restart")>]
member this.Restart : string with get, set
Public Property Restart As String

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to