Zetrix Documentation (EN)
  • Introduction
    • Overview of Zetrix
    • Why Build on Zetrix
  • GETTING STARTED
    • Quick Start Guide
    • Key Concept
  • ARCHITECTURE
    • Blockchain Layer
    • Consensus Mechanism
      • DPos
      • BFT
    • Node Type
    • Security
  • DEVELOPER RESOURCES
    • Smart Contract Development Toolkit
    • Smart Contract
      • Introduction
      • ZTP Standard
        • ZTP-20
        • ZTP-165
        • ZTP-721
        • ZTP-1155
      • Syntax
    • API
      • Overview
      • HTTP
      • Websocket
      • Keypair
    • SDK
      • Node.js
      • Go
      • Java
    • Interoperability
    • Testing and Auditing
      • Asset Issuance
      • Legal Evidence
      • Smart Contract Assets
    • Verifiable Credentials
      • Getting Started
      • API Reference
  • Node & Validator
    • Overview and System Requirements
    • Node Installation
      • Dedicated Address
      • Docker Deployment
    • Maintenance
    • Node Monitoring
    • Common Problems
  • GOVERNANCE
    • On-Chain Governance
    • Distribution of Interests
  • TOKENOMICS
    • Native Token
    • Staking and Rewards
    • Gas Fees and Transaction
  • ECOSYSTEM
    • DApps and Projects
    • Partnerships
    • Explorer and Analytics
  • Wallets
    • Supported Wallets
    • Wallet Intergration
  • Blockchain as a Service
    • BaaS
      • Zetrix Service
        • Core
        • Transaction
        • Contract
    • Zetrix Oraclize
    • Scheduler Contract
  • MISC
    • Burn Address
  • Troubleshooting & FAQ
    • Terminology
    • Security Best Practices
  • Community & Support
    • Developer Community
    • Official Support
    • Contributing to the Blockchain
Powered by GitBook
On this page
  1. Node & Validator
  2. Node Installation

Docker Deployment

PreviousDedicated AddressNextMaintenance

Last updated 6 months ago

Node Deployment Via Docker

The docker image can be used to simplify the installation process in various platforms. Click for the testnet docker image and for the mainnet docker image.

Before deploying using docker, we need to make sure the docker has been installed properly in our operating system.

Linux Environment

To run the docker container in Linux environment, execute the following command.

docker run -d --name zetrix-mainnet --network host zetrixchain/zetrix-mainnet

Window / MAC Environment

docker run -d -p 18001:18001 -p 18002:18002 -p 18003:18003--name zetrix-mainnet zetrixchain/zetrix-mainnet

After running the docker container, we can check our node status by running this command via command line.

curl localhost:18002/getLedger

It should display the information of the node.

{
   "error_code" : 0,
   "result" : {
      "header" : {
         "account_tree_hash" : "33ce2ffa4c16adf9cc3041e80a1d77453a8a8c04b31d1a24821330363acf9372",
         "close_time" : 1665640579169377,
         "consensus_value_hash" : "8687aec6e653f9abcf0c8764e6978a9af89382e11da175e382cb44c90f56a890",
         "fees_hash" : "c745bff5807b8395268c224c9c6c3cc4916369c0ff03ef0b8c015efbb3f054f2",
         "hash" : "882e5b4a776e0c760f7ebbf4bba17af070de9416f45d7e788cd8e3459b310902",
         "previous_hash" : "695beb752f74db9cc3500ab2e5b3c14cb265b4e8c267258a916478999d24b0be",
         "seq" : 621387,
         "tx_count" : 668698,
         "validators_hash" : "d27d944b9eb7da9266fac6634f8001138f3545389705957036580fb26e7630e1",
         "version" : 1000
      },
      "ledger_length" : 227
   }
}
here
here