From b3646595f1ff20e165edc17d1b94710e9fcdcd82 Mon Sep 17 00:00:00 2001
From: James Rodewig <james.rodewig@elastic.co>
Date: Mon, 11 Sep 2023 12:10:01 -0400
Subject: [PATCH] [DOCS] Add `docker-verify-signature` anchor to Docker docs
 (#99431)

**Problem:**

Other Elastic doc sets ([Beats](https://www.elastic.co/guide/en/beats/auditbeat/current/running-on-docker.html), [APM](https://www.elastic.co/guide/en/apm/guide/current/running-on-docker.html)) link to the [Verify the Elasticsearch Docker image signature](https://www.elastic.co/guide/en/elasticsearch/reference/8.9/docker.html#docker-verify-signature) section of the Docker docs. This section was removed as part of https://github.com/elastic/elasticsearch/pull/99371. When we bump to the next version, this will create broken links and break the docs build.

**Solution:**
Re-add the anchor so we don't create broken links or break the docs build.

This commit was added to the backports of https://github.com/elastic/elasticsearch/pull/99371:

- https://github.com/elastic/elasticsearch/pull/99429
- https://github.com/elastic/elasticsearch/pull/99430
---
 docs/reference/setup/install/docker.asciidoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/reference/setup/install/docker.asciidoc b/docs/reference/setup/install/docker.asciidoc
index df70f63bf9068..0c518d520bdd5 100644
--- a/docs/reference/setup/install/docker.asciidoc
+++ b/docs/reference/setup/install/docker.asciidoc
@@ -52,6 +52,7 @@ docker pull {docker-image}
 https://docs.sigstore.dev/system_config/installation/[Cosign] for your
 environment. Then use Cosign to verify the {es} image's signature.
 +
+[[docker-verify-signature]]
 [source,sh,subs="attributes"]
 ----
 wget https://artifacts.elastic.co/cosign.pub