mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
Docker rpc (#3868)
* move name before docker image; add info on how to start gRPC * updates on how to run beacon from docker
This commit is contained in:
22
README.md
22
README.md
@@ -98,12 +98,26 @@ To understand the role that both the beacon node and validator play in Prysm, se
|
||||
To start your beacon node, issue the following command:
|
||||
|
||||
```
|
||||
docker run -v $HOME/prysm-data:/data -p 4000:4000 --name beacon-node \
|
||||
docker run -v $HOME/prysm-data:/data -p 4000:4000 \
|
||||
--name beacon-node \
|
||||
gcr.io/prysmaticlabs/prysm/beacon-chain:latest \
|
||||
--no-genesis-delay \
|
||||
--datadir=/data
|
||||
```
|
||||
|
||||
The beacon node can be halted by either using `Ctrl+c` or with the command:
|
||||
(Optional) If you want to enable gRPC, then run this command instead of the one above:
|
||||
|
||||
```
|
||||
docker run -v $HOME/prysm-data:/data -p 4000:4000 -p 7000:7000 \
|
||||
--name beacon-node \
|
||||
gcr.io/prysmaticlabs/prysm/beacon-chain:latest \
|
||||
--datadir=/data \
|
||||
--no-genesis-delay \
|
||||
--grpc-gateway-port=7000
|
||||
```
|
||||
|
||||
You can stop the beacon node using `Ctrl+c` or with the following command:
|
||||
=======
|
||||
|
||||
```
|
||||
docker stop beacon-node
|
||||
@@ -121,13 +135,13 @@ To delete a corrupted container, issue the command:
|
||||
docker rm beacon-node
|
||||
```
|
||||
|
||||
To recreate a deleted container and refresh the chain database, issue the start command with an additional `--clear-db` parameter:
|
||||
To recreate a deleted container and refresh the chain database, issue the start command with an additional `--force-clear-db` parameter:
|
||||
|
||||
```
|
||||
docker run -it -v $HOME/prysm-data:/data -p 4000:4000 --name beacon-node \
|
||||
gcr.io/prysmaticlabs/prysm/beacon-chain:latest \
|
||||
--datadir=/data \
|
||||
--clear-db
|
||||
--force-clear-db
|
||||
```
|
||||
|
||||
**Docker on Windows:**
|
||||
|
||||
Reference in New Issue
Block a user