| Modifiers | Name | Description |
|---|---|---|
static class |
DockerCreateContainer.ExposedPort |
|
static class |
DockerCreateContainer.LogConfig |
| Fields inherited from class | Fields |
|---|---|
class ConventionTask |
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION, TASK_CONSTRUCTOR_ARGS |
| Type | Name and description |
|---|---|
Boolean |
attachStderr |
Boolean |
attachStdin |
Boolean |
attachStdout |
Map<String, String> |
binds |
String[] |
cmd |
String |
containerId |
String |
containerName |
String |
cpuset |
List<String> |
devices |
String[] |
dns |
String[] |
entrypoint |
String[] |
env |
Map<?, ?> |
envVars |
List<ExposedPort> |
exposedPorts |
List<String> |
extraHosts |
String |
hostName |
String |
image |
String |
imageId |
String |
ipv4Address |
Map<String, String> |
labels |
List<String> |
links |
DockerCreateContainer.LogConfig |
logConfig |
String |
macAddress |
Long |
memory |
Long |
memorySwap |
String |
network |
String[] |
networkAliases |
List<String> |
portBindings |
String[] |
portSpecs |
Boolean |
privileged |
Boolean |
publishAll |
String |
restartPolicy |
Long |
shmSizeSize of /dev/shm in bytes.
|
Boolean |
stdinOnce |
Boolean |
stdinOpen |
Boolean |
tty |
String |
user |
String[] |
volumes |
String[] |
volumesFrom |
String |
workingDir |
| Constructor and description |
|---|
DockerCreateContainer
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
exposePorts(String internetProtocol, List<Integer> ports) |
|
String |
getImageId() |
|
void |
logConfig(String type, Map<String, String> config) |
|
void |
restartPolicy(String name, int maximumRetryCount) |
|
void |
runRemoteCommand(def dockerClient) |
|
void |
targetImageId(Closure imageId) |
|
void |
targetImageId(Callable<String> imageId) |
|
void |
withEnvVar(def key, def value) |
Size of /dev/shm in bytes.
The size must be greater than 0.
If omitted the system uses 64MB.
Groovy Documentation