class DockerCreateContainer extends DockerExistingImage
| Modifiers | Name | Description |
|---|---|---|
class |
DockerCreateContainer.1 |
|
static class |
DockerCreateContainer.ExposedPort |
|
static class |
DockerCreateContainer.HealthCheckConfig |
|
static class |
DockerCreateContainer.HostConfig |
|
| Type | Name and description |
|---|---|
Property<Boolean> |
attachStderr |
Property<Boolean> |
attachStdin |
Property<Boolean> |
attachStdout |
ListProperty<String> |
cmd |
Property<String> |
containerIdThe ID of the container created. |
RegularFileProperty |
containerIdFileOutput file containing the container ID of the container created. |
Property<String> |
containerName |
ListProperty<String> |
entrypoint |
MapProperty<String, String> |
envVars |
ListProperty<ExposedPort> |
exposedPorts |
DockerCreateContainer.HealthCheckConfig |
healthCheck |
DockerCreateContainer.HostConfig |
hostConfig |
Property<String> |
hostName |
Property<String> |
image |
Property<String> |
ipv4Address |
MapProperty<String, String> |
labels |
Property<String> |
macAddress |
ListProperty<String> |
networkAliases |
Property<String> |
pid |
Property<String> |
platformThe target platform in the format os[/arch[/variant]], for example linux/s390x or darwin. |
ListProperty<String> |
portSpecs |
Property<Boolean> |
stdinOnce |
Property<Boolean> |
stdinOpen |
Property<Boolean> |
tty |
Property<String> |
user |
ListProperty<String> |
volumes |
Property<String> |
workingDir |
| Constructor and description |
|---|
DockerCreateContainer
(ObjectFactory objectFactory) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
exposePorts(String internetProtocol, List<Integer> ports) |
|
void |
runRemoteCommand() |
|
void |
withEnvVar(String key, String value) |
| Methods inherited from class | Name |
|---|---|
class DockerExistingImage |
targetImageId, targetImageId, targetImageId |
class AbstractDockerRemoteApiTask |
getDockerClient, getNextHandler, getRegistryAuthLocator, onComplete, onError, onNext, runRemoteCommand, start |
The ID of the container created. The value of this property requires the task action to be executed.
Output file containing the container ID of the container created. Defaults to "$buildDir/.docker/$taskpath-containerId.txt". If path contains ':' it will be replaced by '_'.
The target platform in the format os[/arch[/variant]], for example linux/s390x or darwin.
Groovy Documentation