RestartPolicy
Class sealed net10.0
Defines the restart policy for a Docker service in a Swarm cluster.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes.Swarm;
public sealed class RestartPolicy{ // ...} 5 members
Remarks
Section titled Remarks This class specifies the conditions, delay, maximum attempts, and time window involved in restarting a Docker service container within a Swarm deployment.
Constructors1
Section titled ConstructorsProperties4
Section titled PropertiesConditionget; setstring? Specifies the condition under which a service's container will be restarted.
Delayget; setstring? Specifies the delay duration between restart attempts of the service container.
MaxAttemptsget; setint? Specifies the maximum number of restart attempts allowed for a container as part of the restart policy.
Windowget; setstring? Defines the time window for evaluating the restart conditions in a Docker service restart policy.