### Question:
DockerRegistryServiceImpl implements DockerRegistryService { @Override public void deleteTag(String registry, String name, String tag) { if (!registry.startsWith(CommonConstants.PROTOCOL)) { registry = CommonConstants.PROTOCOL + registry; } String dockerDigestUrl = new StringBuilder(registry).append("/v2/").append(name).append("/manifests/").append(tag).toString(); Request request = new Request.Builder() .url(dockerDigestUrl) .addHeader("accept", "application/vnd.docker.distribution.manifest.v2+json") .get() .build(); try { Response response = client.newCall(request).execute(); String finalRegistry = registry; response.headers("Docker-Content-Digest") .stream() .forEach(digest -> { String deleteUrl = new StringBuilder(finalRegistry).append("/v2/").append(name).append("/manifests/").append(digest).toString(); try { Response executeResponse = client.newCall(new Request.Builder().delete().url(deleteUrl).build()).execute(); log.info("execute response message:{}", executeResponse.message()); log.info("删除镜像tag结果：[{}]", executeResponse.isSuccessful() ? "成功" : "失败"); } catch (IOException e) { log.warn("delete docker image digest error!", e); } }); } catch (IOException e) { log.warn("get docker image digest error!", e); } }  @Override DockerCatalogResp catalog(String registry, Integer number); @Override DockerImageTags listImageTags(String registry, String imageName); @Override void deleteTag(String registry, String name, String tag);  }### Answer:
@Test public void deleteTag() { String registry = "http: String imageName = "platform/ops-pms"; String imageTag = "feature_pms_181018_146"; dockerRegistryService.deleteTag(registry, imageName, imageTag); }