Class DockerImage
java.lang.Object
org.jenkinsci.test.acceptance.docker.DockerImage
Container image, a template to launch virtual machines from.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
DockerImage.Starter<T extends DockerContainer>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the string representation of the docker host as set by DOCKER_HOST environment variable or the localhost address if it is not set (or is a socket).<T extends DockerContainer>
DockerImage.Starter<T>Start container from this image.<T extends DockerContainer>
Tstart
(Class<T> type, int[] ports, int localPortOffset, String ipAddress, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd) Deprecated.<T extends DockerContainer>
Tstart
(Class<T> type, int[] ports, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd) Deprecated.UseDockerImage.Starter
instead.<T extends DockerContainer>
Tstart
(Class<T> type, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd) Deprecated.UseDockerImage.Starter
instead.<T extends DockerContainer>
Tstart
(Class<T> type, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd, int portOffset) Deprecated.UseDockerImage.Starter
instead.toString()
-
Field Details
-
DEFAULT_DOCKER_HOST
-
tag
-
-
Constructor Details
-
DockerImage
-
-
Method Details
-
start
Start container from this image. -
start
@Deprecated public <T extends DockerContainer> T start(Class<T> type, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd, int portOffset) throws InterruptedException, IOException Deprecated.UseDockerImage.Starter
instead.- Throws:
InterruptedException
IOException
-
start
@Deprecated public <T extends DockerContainer> T start(Class<T> type, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd) throws InterruptedException, IOException Deprecated.UseDockerImage.Starter
instead.- Throws:
InterruptedException
IOException
-
start
@Deprecated public <T extends DockerContainer> T start(Class<T> type, int[] ports, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd) throws InterruptedException, IOException Deprecated.UseDockerImage.Starter
instead.- Throws:
InterruptedException
IOException
-
start
@Deprecated public <T extends DockerContainer> T start(Class<T> type, int[] ports, int localPortOffset, String ipAddress, org.jenkinsci.utils.process.CommandBuilder options, org.jenkinsci.utils.process.CommandBuilder cmd) throws InterruptedException, IOException Deprecated.UseDockerImage.Starter
instead.- Throws:
InterruptedException
IOException
-
getDockerHost
Get the string representation of the docker host as set by DOCKER_HOST environment variable or the localhost address if it is not set (or is a socket).- Returns:
- an IP Address or hostname of the docker host
-
toString
-
DockerImage.Starter
instead.