You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WSL users may find difficulty in using Docker, and thus, it is highly recommended to use Ubuntu, or install Docker for Windows. When using Docker for Windows,
@@ -42,13 +42,13 @@ docker images
42
42
It will result in something like this:
43
43
```sh
44
44
REPOSITORY TAG IMAGE ID CREATED SIZE
45
-
codechain-io/codechain branch_or_tag_name 6f8474d9bc7a About a minute ago 1.85GB
45
+
kodebox/codechain branch_or_tag_name 6f8474d9bc7a About a minute ago 1.85GB
46
46
ubuntu 14.04 971bb384a50a 6 days ago 188MB
47
47
```
48
48
49
49
If you want to run the first image file, run the following command:
50
50
```sh
51
-
docker run -it codechain-io/codechain:branch_or_tag_name
51
+
docker run -it kodebox/codechain:branch_or_tag_name
52
52
```
53
53
54
54
This should result in CodeChain running.
@@ -57,16 +57,16 @@ This should result in CodeChain running.
57
57
58
58
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,
59
59
```sh
60
-
docker run -it -v codechain-db-vol:/app/codechain/db -v codechain-keys-vol:/app/codechain/keys codechain-io/codechain:branch_or_tag_name
60
+
docker run -it -v codechain-db-vol:/app/codechain/db -v codechain-keys-vol:/app/codechain/keys kodebox/codechain:branch_or_tag_name
61
61
```
62
62
one can mount the volume `codechain-db-vol` into `/app/db` and the volume `codechain-keys-vol` into `/app/keys` in the container. This command will automatically create volumes if existing volumes with specified names do not exist. Because the default working directory specified in `Dockerfile` is `/app/codechain`, the default db and keys path are `/app/codechain/db` and `app/codechian/keys`. One can also customize the paths with CodeChain cli arguments `base-path`, `key-path` and `db-path`.
63
63
64
64
```sh
65
-
docker run -it -v codechain-db-vol:custom_base_path/db -v codechain-keys-vol:custom_base_path/keys codechain-io/codechain:branch_or_tag_name --base-path custom_base_path
65
+
docker run -it -v codechain-db-vol:custom_base_path/db -v codechain-keys-vol:custom_base_path/keys kodebox/codechain:branch_or_tag_name --base-path custom_base_path
0 commit comments