Install RskJ Using Docker

Ruben Altman edited this page Jan 15, 2018 · 2 revisions

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:

  • A node connected to RSK MainNet: Dockerfile.MainNet
  • A node connected to RSK TestNet: Dockerfile.TestNet
  • A node Standalone/RegTest or private network: Dockerfile.RegTest

Install the node using Docker containers

This only can be done in a machine that is already running Docker.

Then build the container by running (depending on your node's type):

  • MaiNet
docker build -t mainnet -f Dockerfile.MainNet .
  • TestNet
docker build -t testnet -f Dockerfile.TestNet .
  • RegTest
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):

  • 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

Any problems?

We hope our Troubleshooting section can help you!

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.