Run TiKV in your local environment using Docker Compose
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:
sudo yum install docker docker-compose
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
sudo yum install git
Install and deploy
git clone https://github.com/pingcap/tidb-docker-compose.git cd tidb-docker-compose
compose/values.yamlfile to configure the
hostand comment the
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!