new-integration-tests/src/test/java/oracle/weblogic/kubernetes/actions/impl/primitive/Docker.java
public static boolean createImage(String dockerFileDir, String image) {
    String cmdToExecute = String.format("docker build %s -t %s", dockerFileDir, image);
    return new Command()
        .withParams(new CommandParams()
            .command(cmdToExecute))
        .execute();
  }
/**
   * Create docker image.
   * @param image image name:image tag
   * @param dockerFileDir path to Dockerfile directory
   * @return true if delete image is successful
   */
Create docker image.
@param image image name:image tag
@param dockerFileDir path to Dockerfile directory
@return true if delete image is successful
Create docker image . @param image image name : image tag @param dockerFileDir path to Dockerfile directory @return true if delete image is successful
public static boolean createImage(String dockerFileDir, String image) {
    String cmdToExecute = String.format("docker build %s -t %s", dockerFileDir, image);
    return new Command()
        .withParams(new CommandParams()
            .command(cmdToExecute))
        .execute();
  }
public static boolean createImage ( String dockerFileDir , String image ) { String cmdToExecute = String . format ( "docker build %s -t %s" , dockerFileDir , image ) ; return new Command ( ) . withParams ( new CommandParams ( ) . command ( cmdToExecute ) ) . execute ( ) ; }
Create docker image.
Create docker image .