Skip to content

Commit

Permalink
docs: modify run pika in docker readme (#2743)
Browse files Browse the repository at this point in the history
* modify readme

* modify readme

* modify readme

* modify readme

---------

Co-authored-by: liuyuecai <liuyuecai@360.cn>
  • Loading branch information
2 people authored and brother-jin committed Jul 31, 2024
1 parent 9131186 commit 4db6bfb
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,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 <log_dir>:/pika/log \
-v <db_dir>:/pika/db \
-v <dump_dir>:/pika/dump \
-v <dbsync_dir>:/pika/dbsync \
-v "$(pwd)/conf":"/pika/conf" \
-v "/tmp/pika-data":"/data" \
pikadb/pika:v3.3.6
redis-cli -p 9221 "info"
Expand Down

0 comments on commit 4db6bfb

Please sign in to comment.