Make sure your system meets the minimum requirements before installing RSK nodes on it.
Docker Desktop provides an easy and fast way for running containerized applications on various of operating systems.
For Mac OSX and Windows:
For Linux:
sudo
for all docker commands, by default. To avoid this additional steps are required.Ensure that docker is running by running the following command - it should run without any errors.
docker ps
More information about Docker install here.
First of all, download the RSK a Dockerfile and supervisord.conf from artifacts repo.
Inside the artifacts repo, you can choose which type of node you are going to install:
Dockerfile.MainNet
Dockerfile.TestNet
Dockerfile.RegTest
Then build the container by running (depending on your node’s type):
docker build -t mainnet -f Dockerfile.MainNet .
docker build -t testnet -f Dockerfile.TestNet .
docker build -t regtest -f Dockerfile.RegTest .
When the build finishes, you have a container ready to run RSK.
To run the container, you should execute (depending on your node’s type):
docker run -d --name mainnet-node-01 -p 4444:4444 -p 5050:5050 mainnet
docker run -d --name testnet-node-01 -p 4444:4444 -p 50505:50505 testnet
docker run -d --name regtest-node-01 -p 4444:4444 -p 30305:30305 regtest
Go to top