| Package | Description |
|---|---|
| com.github.dockerjava.api.command | |
| com.github.dockerjava.api.model | |
| com.github.dockerjava.core.command |
| Modifier and Type | Method and Description |
|---|---|
RestartPolicy |
CreateContainerCmd.getRestartPolicy() |
| Modifier and Type | Method and Description |
|---|---|
CreateContainerCmd |
CreateContainerCmd.withRestartPolicy(RestartPolicy restartPolicy)
Set custom
RestartPolicy for the container. |
| Modifier and Type | Method and Description |
|---|---|
static RestartPolicy |
RestartPolicy.alwaysRestart()
Always restart the container no matter what exit code is returned.
|
RestartPolicy |
HostConfig.getRestartPolicy() |
static RestartPolicy |
RestartPolicy.noRestart()
Do not restart the container if it dies.
|
static RestartPolicy |
RestartPolicy.onFailureRestart(int maximumRetryCount)
Restart the container if it exits with a non-zero exit code.
|
static RestartPolicy |
RestartPolicy.parse(String serialized)
Parses a textual restart polixy specification (as used by the Docker CLI) to a
RestartPolicy. |
| Modifier and Type | Method and Description |
|---|---|
HostConfig |
HostConfig.withRestartPolicy(RestartPolicy restartPolicy) |
| Modifier and Type | Method and Description |
|---|---|
RestartPolicy |
CreateContainerCmdImpl.getRestartPolicy() |
| Modifier and Type | Method and Description |
|---|---|
CreateContainerCmd |
CreateContainerCmdImpl.withRestartPolicy(RestartPolicy restartPolicy) |
Copyright © 2017. All Rights Reserved.