mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
docs: add 30303 port to plain docker example (#3877)
This commit is contained in:
committed by
GitHub
parent
62f3af6743
commit
5e5bde88a9
@ -64,6 +64,8 @@ docker run \
|
|||||||
-v rethdata:/root/.local/share/reth/db \
|
-v rethdata:/root/.local/share/reth/db \
|
||||||
-d \
|
-d \
|
||||||
-p 9001:9001 \
|
-p 9001:9001 \
|
||||||
|
-p 30303:30303 \
|
||||||
|
-p 30303:30303/udp \
|
||||||
--name reth \
|
--name reth \
|
||||||
reth:local \
|
reth:local \
|
||||||
node \
|
node \
|
||||||
@ -71,6 +73,7 @@ docker run \
|
|||||||
```
|
```
|
||||||
|
|
||||||
The above command will create a container named `reth` and a named volume called `rethdata` for data persistence.
|
The above command will create a container named `reth` and a named volume called `rethdata` for data persistence.
|
||||||
|
It will also expose the `30303` port (TCP and UDP) for peering with other nodes and the `9001` port for metrics.
|
||||||
|
|
||||||
It will use the local image `reth:local`. If you want to use the GitHub Container Registry remote image, use `ghcr.io/paradigmxyz/reth` with your preferred tag.
|
It will use the local image `reth:local`. If you want to use the GitHub Container Registry remote image, use `ghcr.io/paradigmxyz/reth` with your preferred tag.
|
||||||
|
|
||||||
@ -121,14 +124,4 @@ docker exec -it reth bash
|
|||||||
|
|
||||||
**If Reth is running with Docker Compose, replace `reth` with `reth-reth-1` in the above command**
|
**If Reth is running with Docker Compose, replace `reth` with `reth-reth-1` in the above command**
|
||||||
|
|
||||||
### Listing the tables
|
Refer to the [CLI docs](../cli/cli.md) to interact with Reth once inside the Reth container.
|
||||||
|
|
||||||
```bash
|
|
||||||
reth db stats
|
|
||||||
```
|
|
||||||
|
|
||||||
### Viewing some records
|
|
||||||
|
|
||||||
```bash
|
|
||||||
reth db list --start=1 --len=2 Headers
|
|
||||||
```
|
|
||||||
Reference in New Issue
Block a user