From 5e5bde88a9c26ea5ad9c0e470cc9f5012f198134 Mon Sep 17 00:00:00 2001 From: Paolo Facchinetti <51409747+paolofacchinetti@users.noreply.github.com> Date: Mon, 24 Jul 2023 13:35:32 +0200 Subject: [PATCH] docs: add 30303 port to plain docker example (#3877) --- book/installation/docker.md | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/book/installation/docker.md b/book/installation/docker.md index 95ddb86b4..44cd71156 100644 --- a/book/installation/docker.md +++ b/book/installation/docker.md @@ -64,6 +64,8 @@ docker run \ -v rethdata:/root/.local/share/reth/db \ -d \ -p 9001:9001 \ + -p 30303:30303 \ + -p 30303:30303/udp \ --name reth \ reth:local \ 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. +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. @@ -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** -### Listing the tables - -```bash -reth db stats -``` - -### Viewing some records - -```bash -reth db list --start=1 --len=2 Headers -``` \ No newline at end of file +Refer to the [CLI docs](../cli/cli.md) to interact with Reth once inside the Reth container. \ No newline at end of file