Restart Policy
@Serializable
The behavior to apply when the container exits. The default is not to restart. An ever increasing delay (double the previous delay, starting at 100ms) is added before each restart to prevent flooding the server.
Parameters
name
Empty string means not to restart -
noDo not automatically restart -alwaysAlways restart -unless-stoppedRestart always except when the user has manually stopped the container -on-failureRestart only when the container exit code is non-zero
maximum Retry Count
If on-failure is used, the number of times to retry before giving up.