Skip to content

Commit 91dd0b7

Browse files
Merge pull request #373 from ava-labs/cleanup-docker-readme
moved docker commands into sh scripts
2 parents fa21e3a + ad91894 commit 91dd0b7

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,25 @@ The Avalanche binary, named `avalanchego`, is in the `build` directory.
3737

3838
### Docker Install
3939

40-
- Make sure you have docker installed on your machine (so commands like `docker run` etc. are available).
41-
- Build the docker image of latest avalanchego branch by `./scripts/build_image.sh`.
42-
- Check the built image by `docker image ls`, you should see some image tagged
43-
`avaplatform/avalanchego:xxxxxxxx`, where `xxxxxxxx` is the commit id of the Avalanche source it was built from.
44-
- Test Avalanche by `docker run -ti -p 9650:9650 -p 9651:9651 avaplatform/avalanchego:xxxxxxxx /avalanchego/build/avalanchego`. For running a validator,
45-
you may want to extend the docker image with required credentials for
46-
staking.
40+
Make sure docker is installed on the machine - so commands like `docker run` etc. are available.
41+
42+
Building the docker image of latest avalanchego branch can be done by running:
43+
44+
```sh
45+
./scripts/build_image.sh
46+
```
47+
48+
To check the built image, run:
49+
50+
```sh
51+
docker image ls
52+
```
53+
54+
The image should be tagged as `avaplatform/avalanchego:xxxxxxxx`, where `xxxxxxxx` is the shortened commit of the Avalanche source it was built from. To run the avalanche node, run:
55+
56+
```sh
57+
docker run -ti -p 9650:9650 -p 9651:9651 avaplatform/avalanchego:xxxxxxxx /avalanchego/build/avalanchego
58+
```
4759

4860
## Running Avalanche
4961

0 commit comments

Comments
 (0)