🐳Docker

Author [godwin]

System Requirements

CPU
OS
RAM
DISK

2 cores+

Ubuntu 24.04

8GB+

>= 128GB

The Rootstock Mainnet archive node has a size of 132GB on September 22nd, 2024

Last updated at: 22nd Sept 2024

Official docs - https://dev.rootstock.io/node-operators/

Pre-Requisites

First, update, upgrade, and clean the system:

sudo apt update -y && sudo apt upgrade -y && sudo apt auto-remove -y
sudo apt install ufw -y

Configure Firewall Settings

sudo ufw default deny incoming
sudo ufw default allow outgoing

sudo ufw allow 22/tcp
sudo ufw allow 80
sudo ufw allow 443
sudo ufw allow 4444

Install Docker

Run this command to remove any conflicting docker

Add Docker's official GPG key:

Add the repository to ppt sources:

Install docker

Setup Rootstock Node

Make and switch to the working directory for the Rootstock node

Create and edit the configuration file:

Paste the following content into the file You can find all the configuration options here

If you are interested in running the config for other networks, you can find the configs here

Create and edit the docker compose file

Paste the content into the compose file.

In this Docker Compose file, we are utilizing the prebuilt Rootstock node image available on dockerhub, where you can also find other prebuilt images.

Run the node

Monitor the node

Use docker logs to monitor the rootstock node. The -f flag ensures you are following the log output.

You should see a response similar to this once your node starts syncing

Query the node

To get the web3 client version

Output

To check the block number

Output

Attach Geth to the local node

Install Geth

The following command enables the launchpad repository:

Then, to install the stable version of go-ethereum:

Once geth is installed and running, run the below command to attach geth to rsk node

Check if the node is running

Check the blocknumber - the result should match the current rootstock block number

Output

References

Last updated