private static List<ImageConfiguration> filterImages(String nameFilter, List<ImageConfiguration> imagesToFilter) {
        List<ImageConfiguration> ret = new ArrayList<>();
        for (ImageConfiguration imageConfig : imagesToFilter) {
            if (matchesConfiguredImages(nameFilter, imageConfig)) {
                ret.add(imageConfig);
            }
        }
        return ret;
    }
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