Share via


ContainerV1.RestartPolicy Property

Definition

Defines the restart policy for the container. This property indicates how the container should behave when it terminates. Possible values include "Always", "OnFailure", and "Never", which dictate if the container should be restarted unconditionally, only on failure, or not restarted at all, respectively.

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

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to