RestartPolicy
Table of Contents
- $maximumRetryCount : int|null
- If `on-failure` is used, the number of times to retry before giving up.
- $name : string|null
- - Empty string means not to restart.
- getMaximumRetryCount() : int|null
- If `on-failure` is used, the number of times to retry before giving up.
- getName() : string|null
- - Empty string means not to restart.
- setMaximumRetryCount() : self
- If `on-failure` is used, the number of times to retry before giving up.
- setName() : self
- - Empty string means not to restart.
Properties
$maximumRetryCount
If `on-failure` is used, the number of times to retry before giving up.
protected
int|null
$maximumRetryCount
$name
- Empty string means not to restart.
protected
string|null
$name
Methods
getMaximumRetryCount()
If `on-failure` is used, the number of times to retry before giving up.
public
getMaximumRetryCount() : int|null
Return values
int|null —getName()
- Empty string means not to restart.
public
getName() : string|null
-
on-failure
Restart only when the container exit code is non-zero
Return values
string|null —setMaximumRetryCount()
If `on-failure` is used, the number of times to retry before giving up.
public
setMaximumRetryCount(int|null $maximumRetryCount) : self
Parameters
- $maximumRetryCount : int|null
Return values
self —setName()
- Empty string means not to restart.
public
setName(string|null $name) : self
-
on-failure
Restart only when the container exit code is non-zero
Parameters
- $name : string|null