Class CreateImageCommand


  • public class CreateImageCommand
    extends DockerCommand
    This command creates a new image from specified Dockerfile.
    See Also:
    Docker build
    • Constructor Detail

      • CreateImageCommand

        public CreateImageCommand​(File dockerFolder,
                                  String imageName,
                                  String imageTag,
                                  String dockerFile,
                                  boolean noCache,
                                  boolean rm)
    • Method Detail

      • getBuildArgs

        public String getBuildArgs()
      • setBuildArgs

        public void setBuildArgs​(String buildArgs)
      • getImageId

        public String getImageId()
      • execute

        public void execute()
                     throws com.github.dockerjava.api.exception.DockerException
        Specified by:
        execute in class DockerCommand
        Throws:
        com.github.dockerjava.api.exception.DockerException