This guide describes how to quickly deploy a TiKV testing cluster using Docker Compose on a single machine. Currently, this installation method is supported only on Linux.
Make sure that you have the following items installed on your machine:
Install and deploy
git clone https://github.com/pingcap/tidb-docker-compose.git
compose/values.yaml file to configure the
host and comment the
tidb section out.
helm template compose > generated-docker-compose.yml
Create and start the cluster using the
docker-compose -f generated-docker-compose.yml pull # Get the latest Docker images
docker-compose -f generated-docker-compose.yml up -d
You can check whether the TiKV cluster has been successfully deployed using the following command:
If the state of all the TiKV instances is
Up then you have successfully deployed a TiKV cluster!