-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: modify run pika in docker readme #2743
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -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 | ||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a blank line before the code block for proper markdown formatting. - And then execute the following statement to start pika in docker:
+ And then execute the following statement to start pika in docker:
```bash A blank line before the code block will ensure it is properly formatted in markdown viewers. ToolsMarkdownlint
|
||||||||||||||||||||||||||||||||||
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" \ | ||||||||||||||||||||||||||||||||||
Comment on lines
+264
to
+269
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ensure consistent formatting in Docker run commands. - -v "$(pwd)/conf":"/pika/conf" \
- -v "/tmp/pika-data":"/data" \
+ -v "$(pwd)/conf:/pika/conf" \
+ -v "/tmp/pika-data:/data" \ The volume mappings in the Docker command should not have spaces around the colon to ensure consistency and avoid potential issues in different environments or shells. Committable suggestion
Suggested change
ToolsMarkdownlint
|
||||||||||||||||||||||||||||||||||
pikadb/pika:v3.3.6 | ||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||
redis-cli -p 9221 "info" | ||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify the language for the code block to enhance readability and syntax highlighting.
Specifying the language as
properties
for the configuration snippet will help in syntax highlighting and improve the readability of the documentation.Tools
Markdownlint