How to setup a Rootstock node on Docker | Rootstock (RSK)

Before installing Docker, ensure your system meets the minimum requirements before installing the Rootstock node. If you already have docker installed. See Install RSKj using Docker.

Install Docker Desktop Client

Docker Desktop provides an easy and fast way for running containerized applications on various operating systems.

For Mac OSX and Windows:

  • Download and install
  • Start the Docker Desktop client
  • Login with a Docker Hub free account

For Linux:

Ensure that docker is running by running the following command - it should run without any errors.

docker ps

More information about Docker install here.

Install RSKj Using Docker

To install a Rootstock node using Docker, visit the Docker Hub for installation instructions.

Logging in RSKj

By default, logs are exclusively directed to a single file. However, if you wish to enable the logging output to STDOUT, you can specify this system property via the command line using -Dlogging.stdout=<LOG_LEVEL>. That command should look something like this:

java -Dlogging.stdout=INFO -cp <classpath> co.rsk.Start --reset --<RSK network>

Regarding the RSKj Docker containers, logs are printed to STDOUT by default, making it easy to view the logs while the container is running. In order to modify this, you can run the Docker container with the environment variable set to a different LOG_LEVEL (For example, DEBUG log level). That command should follow this structure:

docker run -e RSKJ_LOG_PROPS=DEBUG <container-name>

Receive updates

Get the latest updates from the Rootstock ecosystem

Loading...