code: public String getDataImage(boolean forceUpdate, final Map<String, File> pluginFiles, String imageName)
              throws IOException, SettingsBuildingException, InterruptedException {
          String existedDataImage = null;
  
          final List<Image> images = getDockerCli().listImagesCmd()
                  .withShowAll(true)
                  .exec();
          OUTER:
          for (Image image : images) {
              final String[] repoTags = image.getRepoTags();
              if (nonNull(repoTags)) {
                  for (String repoTag : repoTags) {
                      if (repoTag.equals(imageName)) {
                          existedDataImage = image.getId();
                          break OUTER;
                      }
                  }
              }
          }
  
          if (nonNull(existedDataImage) && (forceUpdate || !isActualDataImage(pluginFiles, existedDataImage))) {
              LOG.info("Removing data-image.");
              //TODO https://github.com/docker-java/docker-java/issues/398
              getDockerCli().removeImageCmd(existedDataImage).withForce(true).exec();
              existedDataImage = null;
          }
  
          if (isNull(existedDataImage)) {
              LOG.debug("Preparing plugin files for");
  
  //            final Set<Artifact> artifactResults = resolvePluginsFor(THIS_PLUGIN);
  //            LOG.debug("Resolved plugins: {}", artifactResults);
  ////            System.out.println(artifactResults);
  //            artifactResults.stream().forEach(artifact ->
  //                            pluginFiles.put(
  //                                    // {@link hudson.PluginManager.copyBundledPlugin()}
  ////                            artifact.getArtifactId() + "." + artifact.getExtension(),
  //                                    artifact.getArtifactId() + ".jpi",
  //                                    artifact.getFile()
  //                            )
  //            );
              existedDataImage = buildImage(pluginFiles);
          }
  
          return existedDataImage;
      }
docs: Ensures that data-image exist on docker.
  Rebuilds data image if content (plugin hashes) doesn't match.
  
  @param forceUpdate rebuild data image.