public static AuthConfigList createCompleteAuthConfigList(boolean isPush, ImageConfiguration imageConfig, RegistryConfig registryConfig, MojoParameters mojoParameters, Map<String, String> buildArgsFromExternalSources) throws MojoExecutionException {
        ImageName imageName = new ImageName(imageConfig.getName());
        String configuredRegistry = EnvUtil.firstRegistryOf(
            imageName.getRegistry(),
            imageConfig.getRegistry(),
            registryConfig.getRegistry());

        AuthConfig authConfig = registryConfig.createAuthConfig(isPush, imageName.getUser(), configuredRegistry);
        AuthConfigList authConfigList = createAuthConfigListForBaseImages(imageConfig.getBuildConfiguration(), mojoParameters, configuredRegistry, registryConfig, buildArgsFromExternalSources);
        if (authConfig != null) {
            authConfigList.addAuthConfig(authConfig);
        }

        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