Cloud API Overview > @adpt/cloud > RestartPolicyName
RestartPolicyName type
Names for RestartPolicy
Signature:
export declare type RestartPolicyName = "Always" | "Never" | "OnFailure" | "UnlessStopped";
Remarks
Always
- Always restart the container. -Never
- Do not automatically restart the container. -OnFailure
- Restart only when the container exit code is non-zero. -UnlessStopped
- Always restart the container, except if it has been manually stopped by user intervention.
See the Docker API Reference for more information.