Deploy.RestartPolicy 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.
Specifies the restart policy for a Docker service.
[YamlDotNet.Serialization.YamlMember(Alias="restart_policy")]
public Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.RestartPolicy? RestartPolicy { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="restart_policy")>]
member this.RestartPolicy : Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm.RestartPolicy with get, set
Public Property RestartPolicy As RestartPolicy
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
The RestartPolicy defines conditions under which the service containers will be restarted, as well as parameters like delay between restarts, maximum restart attempts, and a time window for evaluating restart conditions.