Hop Docs
User Docs
Developer Docs
Developer Docs
  • Welcome
  • JavaScript SDK
    • Welcome
    • Getting started
    • API Reference
  • API
    • API Endpoints
  • Hop Node
    • Running a Hop Bonder
      • Bonder Requirements
      • Choosing a Platform
        • EC2 Setup
      • Securing your Server
        • Add SSH 2FA
      • Installing the Bonder
        • Installing the Bonder with Docker (recommended)
      • Configuring the Bonder
        • Keystore
          • Keystore AWS Parameter Store (recommended)
          • Keystore Local Passphrase
        • Configuration
      • Testing the Bonder
      • Running the Bonder
        • Staking
        • Starting the Bonder
      • Next Steps
    • Bonder Options
      • CLI Commands
      • Keystore Options
      • AWS KMS Signer
      • Monitoring
        • Docker CloudWatch Logs
        • Prometheus
      • Running Docker Container Options
      • Contract State
    • Resources and Best Practices
      • Securing Cloud Instance
      • Additional Security & Node Best Practices
      • Additional questions
  • Subgraphs
    • Welcome
    • Entities
    • Queries
    • Subgraph Info
  • Smart Contracts
    • Welcome
    • Integration
    • Contract Addresses
  • Fees
    • Fee Calculation
  • RPC
    • RPC Endpoints
  • Other
    • Assets
    • On the web
    • FAQ
Powered by GitBook
On this page
  • Docker Compose
  • Stopping docker container
Edit on GitHub
  1. Hop Node
  2. Bonder Options

Running Docker Container Options

Running the Bonder as a Docker Container Options

The following are some options you can consider when running the bonder client.

Running as daemon

Use the --detach docker flag to run container as daemon.

docker run --detach -v ~/.hop:/root hopprotocol/hop-node:mainnet

Note: If you're keystore requires a passphrase and you're not using a password file, you'll need to pass the passpharse via the KEYSTORE_PASS environment variable.

export KEYSTORE_PASS=mysecretpassword
docker run --detach -e KEYSTORE_PASS=$KEYSTORE_PASS -v ~/.hop:/root/.hop hopprotocol/hop-node:mainnet

Docker Compose

Docker compose example for Hop Node: docker-compose.yml

version: '3.9'

  bonder:
    image: hopprotocol/hop:mainnet
    env_file:
      - docker.env
    restart: unless-stopped
    volumes:
        - /home/ubuntu/.hop:/root/.hop

Start docker container:

docker-compose -f docker-compose.yml up bonder

Start docker container as daemon:

docker-compose -f docker-compose.yml up --detach bonder

Stopping docker container

docker stop hop-node
docker rm hop-node

Last updated 1 year ago