Class DockerDaemonImage


  • public class DockerDaemonImage
    extends java.lang.Object
    Builds to the Docker daemon.
    • Method Detail

      • named

        public static DockerDaemonImage named​(ImageReference imageReference)
        Instantiate with the image reference to tag the built image with. This is the name that shows up on the Docker daemon.
        Parameters:
        imageReference - the image reference
        Returns:
        a new DockerDaemonImage
      • setDockerExecutable

        public DockerDaemonImage setDockerExecutable​(java.nio.file.Path dockerExecutable)
        Sets the path to the docker CLI. This is docker by default.
        Parameters:
        dockerExecutable - the path to the docker CLI
        Returns:
        this
      • setDockerEnvironment

        public DockerDaemonImage setDockerEnvironment​(java.util.Map<java.lang.String,​java.lang.String> dockerEnvironment)
        Sets the additional environment variables to use when running docker.
        Parameters:
        dockerEnvironment - additional environment variables
        Returns:
        this