RSK – Install a node with Docker

intro

The RSK network is the Smart Contract platform of Bitcoin, it offers the same capabilities of Ethereum, but the gas is paid with Bitcoin.

When your application needs to interact with the network by publishing or calling a Smart Contract you need a node synchronized. This video of the series explains how to install a node on Docker.

The video is closed captioned, and bellow you will find the step by step easy to copy and paste.

Step 1:

Navigate to the RSK Artifacts page and download
the supervisord.conf and the Dockerfile corresponding to the desired environment.

Step 2:

Open a Terminal and navigate where the
downloaded files are placed and run the following command to build the image:

For MaiNet

docker build -t mainnet -f Dockerfile.MainNet .

For TestNet

docker build -t testnet -f Dockerfile.TestNet .

For RegTest

docker build -t regtest -f Dockerfile.RegTest .

Step 3:

Run the container by executing the following command, depending on the network selected before:

MaiNet

docker run -d --name mainnet-node-01  -p 4444:4444 -p 5050:5050 mainnet

TestNet

docker run -d --name testnet-node-01  -p 4444:4444 -p 50505:50505 testnet

RegTest

docker run -d --name regtest-node-01  -p 4444:4444 -p 30305:30305 regtest
[Facebook] [Google] [LinkedIn] [Twitter] [Windows Live] [Email]
Tagged with: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*