docs: public void pullImageWithPolicy(String image, ImagePullManager pullManager, RegistryConfig registryConfig, boolean hasImage)
          throws DockerAccessException, MojoExecutionException {
  
          // Already pulled, so we don't need to take care
          if (pullManager.hasAlreadyPulled(image)) {
              return;
          }
  
          // Check if a pull is required
          if (!imageRequiresPull(hasImage, pullManager.getImagePullPolicy(), image)) {
              return;
          }
  
          ImageName imageName = new ImageName(image);
          long time = System.currentTimeMillis();
          String actualRegistry = EnvUtil.firstRegistryOf(
              imageName.getRegistry(),
              registryConfig.getRegistry());
          docker.pullImage(imageName.getFullName(),
                           createAuthConfig(false, null, actualRegistry, registryConfig), actualRegistry);
          log.info("Pulled %s in %s", imageName.getFullName(), EnvUtil.formatDurationTill(time));
          pullManager.pulled(image);
  
          if (actualRegistry != null && !imageName.hasRegistry()) {
              // If coming from a registry which was not contained in the original name, add a tag from the
              // full name with the registry to the short name with no-registry.
              docker.tag(imageName.getFullName(actualRegistry), image, false);
          }
      }