code: public static List<DockerImage> getImagesByBuildId(int buildInfoId) {
          List<DockerImage> list = new ArrayList<DockerImage>();
          Iterator<DockerImage> it = images.iterator();
          while (it.hasNext()) {
              DockerImage image = it.next();
              if (image.getBuildInfoId() == buildInfoId && image.hasManifest()) {
                  list.add(image);
              }
          }
          return list;
      }
docs: Gets a list of registered docker images from the images cache, if it has been
  registered to the cache for a specific build-info ID and if a docker manifest has been captured for it
  by the build-info proxy.
  @param buildInfoId
  @return