RestartPolicy

constructor(name: RestartPolicy.Name? = null, maximumRetryCount: Int? = null)

Parameters

name
  • Empty string means not to restart - no Do not automatically restart - always Always restart - unless-stopped Restart always except when the user has manually stopped the container - on-failure Restart only when the container exit code is non-zero

maximumRetryCount

If on-failure is used, the number of times to retry before giving up.