-
Notifications
You must be signed in to change notification settings - Fork 51
Add an explanation for managing data persistent #1503
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
Add an explanation for managing data persistent #1503
Conversation
2b5717a
to
a552e36
Compare
a552e36
to
434b002
Compare
README.md
Outdated
@@ -53,6 +53,23 @@ docker run -it codechain-io/codechain:branch_or_tag_name | |||
|
|||
This should result in CodeChain running. | |||
|
|||
#### Making local database and keys persistent | |||
|
|||
CodeChain depends on the local database and keys commonly stored under the directories `keys` and `db`. A Docker container is independent of host environment and other Docker images. Therefore, in case of running a new Docker container with an image with a new CodeChain version or even with the same image, the database and keys are not persistent. To solve the problem, one can take advantage of Docker's volume option. With the command below, |
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.
CodeChain depends on the local database and keys commonly stored under the directories keys
and db
. A Docker container is independent of host environment and other Docker images. Therefore, when running a new Docker container with an image with a new CodeChain version or even with the same image, the database and keys are not persistent. To solve the problem, one can take advantage of the Docker's volume option. With the command below,
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.
Thank you
434b002
to
df369ab
Compare
@HoOngEe Please resolve the conflicts |
9368ce8
to
145ef09
Compare
I resolved the conflicts |
145ef09
to
53362f7
Compare
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.
@HoOngEe Please check the commits again.
You should remove the first commit, but you left the commit and reverted the change of the first commit in the second commit.
53362f7
to
00e675c
Compare
@sgkim126 I applied your suggestion and now the commit looks clear. |
Added an explanation in the `Setup > Using Docker` section.
810c3db
to
d513a29
Compare
This should be merged after the #1499 is merged
It closes #720