Installing a single-node CockroachDB cluster using Docker
Let's take a look at how to install a single-node CockroachDB cluster, which will be required to try out some of the commands that will be introduced in this chapter. Here are the steps you need to follow:
- Ensure the Docker daemon is running with the following command:
docker version
Pull the most recent stable version with tag v<xx.y.z>
from https://hub.docker.com/r/cockroachdb/cockroach/. Take a look at the following example:
docker pull cockroachdb/cockroach:v20.2.4
- Make sure this image is available and the version is correct with the help of the following command:
docker images | grep cockroach cockroachdb/cockroach v20.2.4 d47481b0b677 2 days ago 329MB
If running docker on windows, then replace...