From e7edec67fe675cf0b22e76e9b0e15ec6012b408c Mon Sep 17 00:00:00 2001 From: JayLiu <38887641+luky116@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:35:52 +0800 Subject: [PATCH] docs: modify run pika in docker readme (#2743) * modify readme * modify readme * modify readme * modify readme --------- Co-authored-by: liuyuecai --- README.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 37de45f596..a97f29e074 100644 --- a/README.md +++ b/README.md @@ -252,14 +252,21 @@ Users can directly download the latest binary version package from [releases](ht * #### 3.1 Running with Docker - ```bash + Modify the following configuration items of conf/pika.conf file: + ``` + log-path : /data/log/ + db-path : /data/db/ + db-sync-path : /data/dbsync/ + dump-path : /data/dump/ + ``` + + And then execute the following statement to start pika in docker: + ```bash docker run -d \ --restart=always \ -p 9221:9221 \ - -v :/pika/log \ - -v :/pika/db \ - -v :/pika/dump \ - -v :/pika/dbsync \ + -v "$(pwd)/conf":"/pika/conf" \ + -v "/tmp/pika-data":"/data" \ pikadb/pika:v3.3.6 redis-cli -p 9221 "info"