Package | Description |
---|---|
com.github.dockerjava.api.command | |
com.github.dockerjava.api.model |
Modifier and Type | Method and Description |
---|---|
RestartPolicy |
UpdateContainerCmd.getRestartPolicy() |
default RestartPolicy |
CreateContainerCmd.getRestartPolicy()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
UpdateContainerCmd |
UpdateContainerCmd.withRestartPolicy(RestartPolicy restartPolicy) |
default CreateContainerCmd |
CreateContainerCmd.withRestartPolicy(RestartPolicy restartPolicy)
Deprecated.
|
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 . |
static RestartPolicy |
RestartPolicy.unlessStoppedRestart()
Restart the container unless it has been stopped
|
Modifier and Type | Method and Description |
---|---|
HostConfig |
HostConfig.withRestartPolicy(RestartPolicy restartPolicy)
Set custom
RestartPolicy for the container. |
Copyright © 2025. All rights reserved.