Merge pull request #23760 from eediallo/fix-cockroachdb-tag

docs(guide): Update CockroachDB setup commands with correct image tag
This commit is contained in:
David Karlsson
2025-11-24 11:18:55 +01:00
committed by GitHub

View File

@@ -89,13 +89,13 @@ $ docker run -d \
-p 26257:26257 \
-p 8080:8080 \
-v roach:/cockroach/cockroach-data \
cockroachdb/cockroach:latest-v20.1 start-single-node \
cockroachdb/cockroach:latest-v25.4 start-single-node \
--insecure
# ... output omitted ...
```
Notice a clever use of the tag `latest-v20.1` to make sure that you're pulling the latest patch version of 20.1. The diversity of available tags depend on the image maintainer. Here, your intent was to have the latest patched version of CockroachDB while not straying too far away from the known working version as the time goes by. To see the tags available for the CockroachDB image, you can go to the [CockroachDB page on Docker Hub](https://hub.docker.com/r/cockroachdb/cockroach/tags).
Notice a clever use of the tag `latest-v25.4` to make sure that you're pulling the latest patch version of 25.4. The diversity of available tags depend on the image maintainer. Here, your intent was to have the latest patched version of CockroachDB while not straying too far away from the known working version as the time goes by. To see the tags available for the CockroachDB image, you can go to the [CockroachDB page on Docker Hub](https://hub.docker.com/r/cockroachdb/cockroach/tags).
### Configure the database engine
@@ -473,7 +473,7 @@ $ docker run -d \
-p 26257:26257 \
-p 8080:8080 \
-v roach:/cockroach/cockroach-data \
cockroachdb/cockroach:latest-v20.1 start-single-node \
cockroachdb/cockroach:latest-v25.4 start-single-node \
--insecure
```
@@ -548,7 +548,7 @@ services:
restart_policy:
condition: on-failure
roach:
image: cockroachdb/cockroach:latest-v20.1
image: cockroachdb/cockroach:latest-v25.4
container_name: roach
hostname: db
networks: