public class DockerDaemonImage
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DockerDaemonImage |
named(ImageReference imageReference)
Instantiate with the image reference to tag the built image with.
|
static DockerDaemonImage |
named(java.lang.String imageReference)
Instantiate with the image reference to tag the built image with.
|
DockerDaemonImage |
setDockerEnvironment(java.util.Map<java.lang.String,java.lang.String> dockerEnvironment)
Sets the additional environment variables to use when running
docker . |
DockerDaemonImage |
setDockerExecutable(java.nio.file.Path dockerExecutable)
Sets the path to the
docker CLI. |
public static DockerDaemonImage named(ImageReference imageReference)
imageReference
- the image referenceDockerDaemonImage
public static DockerDaemonImage named(java.lang.String imageReference) throws InvalidImageReferenceException
imageReference
- the image referenceDockerDaemonImage
InvalidImageReferenceException
- if imageReference
is not a valid image referencepublic DockerDaemonImage setDockerExecutable(java.nio.file.Path dockerExecutable)
docker
CLI. This is docker
by default.dockerExecutable
- the path to the docker
CLIpublic DockerDaemonImage setDockerEnvironment(java.util.Map<java.lang.String,java.lang.String> dockerEnvironment)
docker
.dockerEnvironment
- additional environment variables