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 |
---|---|
void |
HostConfig.setRestartPolicy(RestartPolicy restartPolicy) |
Constructor and Description |
---|
HostConfig(Bind[] binds,
Link[] links,
LxcConf[] lxcConf,
LogConfig logConfig,
Ports portBindings,
boolean publishAllPorts,
boolean privileged,
boolean readonlyRootfs,
String[] dns,
String[] dnsSearch,
VolumesFrom[] volumesFrom,
String containerIDFile,
Capability[] capAdd,
Capability[] capDrop,
RestartPolicy restartPolicy,
String networkMode,
Device[] devices,
String[] extraHosts,
Ulimit[] ulimits) |
Modifier and Type | Method and Description |
---|---|
RestartPolicy |
CreateContainerCmdImpl.getRestartPolicy() |
Modifier and Type | Method and Description |
---|---|
CreateContainerCmd |
CreateContainerCmdImpl.withRestartPolicy(RestartPolicy restartPolicy) |
Copyright © 2015. All Rights Reserved.