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
docs: Updated docker doc to reference latest CLI version (ignite#2987)
Updated the documentation to reflect the latest CLI version (v.0.25.1) and updated the command examples to use the simplified 'scaffold chain planet' command. Documentation also references and notes version 0.24.1 which is the most recent specifically tagged version to-date.
Co-authored-by: Alex Johnson <alex@shmeeload.xyz>
Copy file name to clipboardExpand all lines: docs/docs/kb/09-docker.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ After you scaffold and start a chain in your Docker container, all Ignite CLI co
23
23
24
24
```bash
25
25
docker run -ti ignitehq/cli -h
26
-
docker run -ti ignitehq/cli scaffold chain github.com/test/planet
26
+
docker run -ti ignitehq/cli scaffold chain planet
27
27
docker run -ti ignitehq/cli chain serve
28
28
```
29
29
@@ -33,9 +33,7 @@ When Docker is installed, you can build a blockchain with a single command.
33
33
34
34
Ignite CLI, and the chains you serve with Ignite CLI, persist some files.
35
35
When using the CLI binary directly, those files are located in `$HOME/.ignite`
36
-
and `$HOME/.cache`, but in the context of Docker it's better to use a directory different than `$HOME`, so we use `$HOME/sdh`. This folder should be created
37
-
manually prior to the docker commands below, or else Docker creates it with the
38
-
root user.
36
+
and `$HOME/.cache`, but in the context of Docker it's better to use a directory different than `$HOME`, so we use `$HOME/sdh`. This folder should be created manually prior to the docker commands below, or else Docker creates it with the root user.
39
37
40
38
```bash
41
39
mkdir $HOME/sdh
@@ -44,12 +42,12 @@ mkdir $HOME/sdh
44
42
To scaffold a blockchain `planet` in the `/apps` directory in the container, run this command in a terminal window:
Be patient, this command takes a minute or two to run because it does everything for you:
51
49
52
-
- Creates a container that runs from the `ignitehq/cli:0.16.0` image.
50
+
- Creates a container that runs from the `ignitehq/cli:0.24.1` image.
53
51
- Executes the Ignite CLI binary inside the image.
54
52
-`-v $HOME/sdh:/home/tendermint` maps the `$HOME/sdh` directory in your local computer (the host machine) to the home directory `/home/tendermint` inside the container.
55
53
-`-v $PWD:/apps` maps the current directory in the terminal window on the host machine to the `/apps` directory in the container. You can optionally specify an absolute path instead of `$PWD`.
@@ -63,7 +61,7 @@ Be patient, this command takes a minute or two to run because it does everything
63
61
To start the blockchain node in the Docker container you just created, run this command:
@@ -85,16 +83,17 @@ You can specify which version of Ignite CLI to install and run in your Docker co
85
83
- By default, `ignitehq/cli` resolves to `ignitehq/cli:latest`.
86
84
- The `latest` image tag is always the latest stable [Ignite CLI release](https://github.com/ignite/cli/releases).
87
85
88
-
For example, if latest release is [v0.15.1](https://github.com/ignite/cli/releases/tag/v0.19.2), the `latest` tag points to the `0.19.2` tag.
86
+
For example, if latest release is [v0.25.1](https://github.com/ignite/cli/releases/tag/v0.25.1), the `latest` tag points to the `0.25.1` tag.
89
87
90
88
### Specific version
91
89
92
90
You can specify to use a specific version of Ignite CLI. All available tags are in the [ignitehq/cli image](https://hub.docker.com/r/ignitehq/cli/tags?page=1&ordering=last_updated) on Docker Hub.
93
91
94
92
For example:
95
93
96
-
- Use `ignitehq/cli:0.19.2` (without the `v` prefix) to use version 0.15.1.
97
-
- Use `ignitehq/cli:develop` to use the `develop` branch so you can experiment with the next version.
94
+
- Use `ignitehq/cli:0.24.1` (without the `v` prefix) to use version 0.24.1.
95
+
- Use `ignitehq/cli` to use the latest version.
96
+
- Use `ignitehq/cli:develop` to use the `develop` branch so you can experiment with the upcoming version.
0 commit comments