Skip to content

Commit 7042793

Browse files
committed
Fix docker repository name
We are using kodebox/codechain: https://hub.docker.com/r/kodebox/codechain
1 parent ce53f3c commit 7042793

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ CodeChain supports the use of Docker to provide an easy and seamless installatio
2828
needs to get CodeChain up and running. In order to get the installation package, run the following command after installing Docker:
2929

3030
```sh
31-
docker build -f docker/ubuntu/Dockerfile --tag codechain-io/codechain:branch_or_tag_name .
31+
docker build -f docker/ubuntu/Dockerfile --tag kodebox/codechain:branch_or_tag_name .
3232
```
3333

3434
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
4242
It will result in something like this:
4343
```sh
4444
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
4646
ubuntu 14.04 971bb384a50a 6 days ago 188MB
4747
```
4848

4949
If you want to run the first image file, run the following command:
5050
```sh
51-
docker run -it codechain-io/codechain:branch_or_tag_name
51+
docker run -it kodebox/codechain:branch_or_tag_name
5252
```
5353

5454
This should result in CodeChain running.
@@ -57,16 +57,16 @@ This should result in CodeChain running.
5757

5858
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,
5959
```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
6161
```
6262
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`.
6363

6464
```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
6666
```
6767

6868
```sh
69-
docker run -it -v codechain-db-vol:custom_db_path -v codechain-keys-vol:custom_keys_path codechain-io/codechain:branch_or_tag_name --db-path custom_db_path --keys-path custom_keys_path
69+
docker run -it -v codechain-db-vol:custom_db_path -v codechain-keys-vol:custom_keys_path kodebox/codechain:branch_or_tag_name --db-path custom_db_path --keys-path custom_keys_path
7070
```
7171
With the methods above, node organizers can manage their local persistent data using docker images.
7272

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Docker support
22

33
## Ubuntu
4-
`docker build -f docker/ubuntu/Dockerfile --tag codechain-io/codechain:branch_or_tag_name .`
4+
`docker build -f docker/ubuntu/Dockerfile --tag kodebox/codechain:branch_or_tag_name .`

0 commit comments

Comments
 (0)