Skip to content

Commit d97819b

Browse files
luky116liuyuecai
authored andcommitted
docs: modify run pika in docker readme (OpenAtomFoundation#2743)
* modify readme * modify readme * modify readme * modify readme --------- Co-authored-by: liuyuecai <liuyuecai@360.cn>
1 parent bb1f627 commit d97819b

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,21 @@ Users can directly download the latest binary version package from [releases](ht
203203
204204
* #### 3.1 Running with Docker
205205
206-
```bash
206+
Modify the following configuration items of conf/pika.conf file:
207+
```
208+
log-path : /data/log/
209+
db-path : /data/db/
210+
db-sync-path : /data/dbsync/
211+
dump-path : /data/dump/
212+
```
213+
214+
And then execute the following statement to start pika in docker:
215+
```bash
207216
docker run -d \
208217
--restart=always \
209218
-p 9221:9221 \
210-
-v <log_dir>:/pika/log \
211-
-v <db_dir>:/pika/db \
212-
-v <dump_dir>:/pika/dump \
213-
-v <dbsync_dir>:/pika/dbsync \
219+
-v "$(pwd)/conf":"/pika/conf" \
220+
-v "/tmp/pika-data":"/data" \
214221
pikadb/pika:v3.3.6
215222
216223
redis-cli -p 9221 "info"

0 commit comments

Comments
 (0)