public static boolean isNoCache(ImageConfiguration imageConfig) {
        String noCache = System.getProperty("docker.noCache");
        if (noCache == null) {
            noCache = System.getProperty("docker.nocache");
        }
        if (noCache != null) {
            return noCache.length() == 0 || Boolean.valueOf(noCache);
        } else {
            BuildImageConfiguration buildConfig = imageConfig.getBuildConfiguration();
            return buildConfig.noCache();
        }
    }
Initialize and validate the configuration.


@param images the images to check
@param apiVersion the original API version intended to use
@param nameFormatter formatter for image names
@param log a logger for printing out diagnostic messages
@return the minimal API Docker API required to be used for the given configuration.
src/main/java/io/fabric8/maven/docker/config/ConfigHelper.java