Join our
Discord!
LogoLogo
SupraScan ExplorerStarKey WalletDiscord
Node Operator
  • Network
  • Oracles
  • Automation
  • SupraNova
  • AI Agents
Node Operator
  • Overview
  • Node Operator FAQ
  • Node Setup Guide
  • Node Upgrade Guide
    • Upgrade Checklist (Pre-Upgrade Verification)
    • Download the Node Management Scripts
    • Update the Supra Node Docker Image
    • Validator Migration to 9.0.12
    • RPC Migration to 9.0.12
    • Starting the Supra Node
    • Monitor Node Synchronization
    • CLI Improvements
    • Recovery Guide
  • Node Relocation Guide
    • Summary
    • Step 1
    • Step 2
    • Step 3
    • Step 4
    • Step 5
    • Step 6
    • Step 7
    • Step 8
  • Creating SupraDesk Tickets via Email
Powered by GitBook

Links

  • Whitepapers
  • Bug Bounty
  • Security Audits

‎

  • Supra Dev Hub
  • Supra Labs Github
  • Entropy Foundation Github
On this page
  • Setting Up a Docker Container on the New Instance
  • Latest Validator Docker Images:
  • Define Variables
  • Deploy the Container
Edit on GitHub
  1. Node Relocation Guide

Step 3

Setting Up a Docker Container on the New Instance

Execute the following Docker command to initialize the container with the latest Supra Validator Docker image for your target environment on the new instance.

Latest Validator Docker Images:

# Testnet
asia-docker.pkg.dev/supra-devnet-misc/supra-testnet/validator-node:v8.0.2
# Mainnet
asia-docker.pkg.dev/supra-devnet-misc/supra-mainnet/validator-node:v7.1.7

Define Variables

# Define Network Type
NETWORK="testnet"  # Change to "mainnet" if running on mainnet


# Specify the IP address.
IP_ADDRESS="your_ip_address"


# Determine the container name based on network type
if [ "$NETWORK" = "mainnet" ]; then
  CONTAINER_NAME="supra_mainnet_$IP_ADDRESS"
else
  CONTAINER_NAME="supra_$IP_ADDRESS"
fi

Deploy the Container

docker run \  
  --name "$CONTAINER_NAME" \  
  -v ./supra_configs:/supra/configs \  
  -e "SUPRA_HOME=/supra/configs" \  
  -e "SUPRA_LOG_DIR=/supra/configs/supra_node_logs" \  
  -e "SUPRA_MAX_LOG_FILE_SIZE=4000000" \  
  -e "SUPRA_MAX_UNCOMPRESSED_LOGS=5" \  
  -e "SUPRA_MAX_LOG_FILES=20" \  
  --net=host \  
  -itd "$LATEST_DOCKER_IMAGE"

\

PreviousStep 2NextStep 4