public static AuthConfigList createAuthConfigListForBaseImages(BuildImageConfiguration buildConfig, MojoParameters mojoParameters, String configuredRegistry, RegistryConfig registryConfig, Map<String, String> buildArgsFromExternalSources) throws MojoExecutionException {
        AuthConfigList authConfigList = new AuthConfigList();
        Set<String> fromRegistries = getRegistriesForPull(buildConfig, mojoParameters, buildArgsFromExternalSources);
        for (String fromRegistry : fromRegistries) {
            if (StringUtils.isNotBlank(configuredRegistry) && configuredRegistry.equalsIgnoreCase(fromRegistry)) {
                continue;
            }
            registryConfig.registry = fromRegistry;
            AuthConfig additionalAuth = registryConfig.createAuthConfig(false, null, fromRegistry);
            if (additionalAuth != null) {
                authConfigList.addAuthConfig(additionalAuth);
            }
        }
        return authConfigList;
    }
Check an image, and, if <code>autoPull</code> is set to true, fetch it. Otherwise if the image
 is not existent, throw an error

@param image image which is required to be pulled
@param pullManager image pull manager
@param registryConfig registry configuration
@param buildImageConfiguration image build configuration
@throws DockerAccessException in case of error in contacting docker daemon
@throws MojoExecutionException in case of any other misc failure
src/main/java/io/fabric8/maven/docker/service/RegistryService.java