Package | Description |
---|---|
com.github.dockerjava.api.command | |
com.github.dockerjava.api.model | |
com.github.dockerjava.core.command |
Modifier and Type | Method and Description |
---|---|
RestartPolicy |
StartContainerCmd.getRestartPolicy() |
Modifier and Type | Method and Description |
---|---|
StartContainerCmd |
StartContainerCmd.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 |
---|---|
void |
HostConfig.setRestartPolicy(RestartPolicy restartPolicy) |
Constructor and Description |
---|
HostConfig(String[] binds,
Links links,
LxcConf[] lxcConf,
Ports portBindings,
boolean publishAllPorts,
boolean privileged,
String[] dns,
String[] dnsSearch,
VolumesFrom[] volumesFrom,
String containerIDFile,
Capability[] capAdd,
Capability[] capDrop,
RestartPolicy restartPolicy,
String networkMode,
Device[] devices) |
Modifier and Type | Method and Description |
---|---|
RestartPolicy |
StartContainerCmdImpl.getRestartPolicy() |
Modifier and Type | Method and Description |
---|---|
StartContainerCmd |
StartContainerCmdImpl.withRestartPolicy(RestartPolicy restartPolicy) |
Copyright © 2015. All Rights Reserved.