public static final class DockerImage.Starter<T extends DockerContainer> extends Object
| Constructor and Description |
|---|
Starter(Class<T> type,
DockerImage image) |
| Modifier and Type | Method and Description |
|---|---|
T |
start() |
DockerImage.Starter<T> |
withArgs(org.jenkinsci.utils.process.CommandBuilder args) |
DockerImage.Starter<T> |
withIpAddress(String ipAddress) |
DockerImage.Starter<T> |
withLog(File log) |
DockerImage.Starter<T> |
withOptions(org.jenkinsci.utils.process.CommandBuilder options) |
DockerImage.Starter<T> |
withPortOffset(Integer portOffset) |
DockerImage.Starter<T> |
withPorts(int... ports) |
DockerImage.Starter<T> |
withUdpPorts(int... udpPorts) |
public Starter(Class<T> type, DockerImage image)
@Nonnull public DockerImage.Starter<T> withPorts(int... ports)
@Nonnull public DockerImage.Starter<T> withUdpPorts(int... udpPorts)
@Nonnull public DockerImage.Starter<T> withPortOffset(Integer portOffset)
@Nonnull public DockerImage.Starter<T> withIpAddress(String ipAddress)
@Nonnull public DockerImage.Starter<T> withOptions(org.jenkinsci.utils.process.CommandBuilder options)
@Nonnull public DockerImage.Starter<T> withArgs(org.jenkinsci.utils.process.CommandBuilder args)
@Nonnull public DockerImage.Starter<T> withLog(File log)
@Nonnull public T start() throws InterruptedException, IOException
InterruptedExceptionIOExceptionCopyright © 2004–2018. All rights reserved.