Pando Project
About UsWallet & ExplorerGitHub
  • Pandoproject -Documentations
  • Whitepaper
  • Pando Network Testament
  • Blockchain Integration
    • Mainnet v4.0-2.0 Code
    • Mainnet v1.0 Code
    • Command Line Tool
    • Connect to the Mainnet
      • Using Pre-Compiled Binaries
      • Using Code
    • Connect to the Testnet
      • Using Pre-Compiled Binaries
      • Using code
    • Launch a Local Private Net
    • Configuration
  • APIs
    • Tx Api
    • RPC API Reference
    • Pando CLI APIs
    • PNC 20 Protocol
    • PNC721- Protocol
  • Pando Nodes
    • Zytatron Node
    • Metatron Node
    • Rametron Overview
    • Mainnet Metatron Setup
    • To Migrate Metatron/Zytatron
  • Rametron Overview
    • Rametron Lite
    • Rametron Mobile
    • Rametron Pro
    • Rametron Ent
  • How to Stake ?
    • Stake for RT Lite
    • Stake for RT Mobile
    • Stake for RTPro
    • Stake for RTE
  • Wallet Application
    • Web Wallet Overview
    • Connect to Metamask
    • Wallet Code- Frontend
    • Wallet Code- Backend
    • Wallet API Reference
    • Explorer Overview
  • Explorer Application
    • Explorer Node- Frontend
    • Explorer Code- Backend
    • Explorer API Reference
  • Connect to Metamask
  • Smart Contracts
    • Ethereum RPC API support
    • Deployment fees
    • PNC-20
      • PNC20 Code
      • PNC20 API Reference
    • PNC-721
      • PNC721 Code
      • PNC721 API Reference
  • Docker Implementation
  • Videos
  • Frequently Asked Question
    • Upgrade Chain to Mainnet 4.0
    • To Resolve The Block Height Issue
  • Developer Community Engagement
Powered by GitBook
On this page
  • Run Single Blockchain Node
  • Run Multiple Blockchain Nodes

Docker Implementation

Pandolab explains how to run blockchain nodes using a single server and Docker Compose.

Our objective is to conduct more comprehensive testing of our blockchain, and to that end, we've decided to deploy multiple nodes on a single server instead of the traditional approach of deploying a single node on each server. However, each blockchain node has specific resource requirements such as storage, RAM, CPU, and ports, and in order to ensure secure and proper functioning deployment of nodes, we need to separate our resources from one another

What's Inside

  • Docker Implementation to run a Single Blockchain node.

  • Solutions | Troubleshooting

Docker Implementation to run a Single Blockchain node

The operations are performed using Ubuntu OS as the base machine, but any Debian based OS can be used. To begin, it is necessary to install all the required software and dependencies. Assuming that you have a Debian based server set up and connected, execute the following commands in sequence

As the upcoming commands need to be executed as a root user, let's switch the user first.

sudo su root
cd /root
apt-get update
apt-get install docker.io docker-compose -y

To ensure that Node operates correctly, it is necessary to have a folder that persists even when the container's state changes. This guarantees the safety of your data in case the container is stopped or terminated. A folder called "Blockchain-data" will be automatically generated by Docker at the "/root" directory. You can access this location to obtain more information after running your node.

Run Single Blockchain Node

Please modify the password of your node in the command below by replacing "YourBlockchainPassword" with your preferred password.

docker run -itd -p12000:12000 -v /root/BlockchainData/db:/app/pando/node/db -v/root/BlockchainData/key:/app/pando/node/key --name pandonode -e password=YourBlockchainPassword public.ecr.aws/n7n4m2f1/pando-network-protocol:latest

Note:- It is recommended to use the above command only once, as other commands listed below can be used for starting, stopping, and retrieving information

Run this command to check running logs of the Blockchain Node

docker logs -f pandonode
  • Run this command to stop the node

docker stop pandonode
  • Run this command to start the node again with existng configuration

docker start pandonode

Your node is now up and running successfully. To check its details, execute the following command

docker exec -it pandonode pandocli query metatron

The output of this Command will give to node address and other useful informations which may be needed to stake. The informations can be copied from the output.

Run Multiple Blockchain Nodes

Despite not being our recommended approach, if you are already well-versed in using docker-compose, you may utilize our official image for setting multiple nodes.

We don't provide tech support for this implementation.

PreviousPNC-721NextFrequently Asked Question

Last updated 2 years ago