Using Docker (Testnet)
Last updated
Last updated
Before starting, ensure that you meet the system requirements for Pharos nodes. Additionally, install the following dependencies:
You need to modify /data/$WORKSPACE
and create the $WORKSPACE
directory in a data disk with large space. For example, if your data disk is mounted in /app, then mkdir /app/$WORKSPACE
Generate a docker-compose.yml
file for managing Pharos nodes
Parameter Explanation
name pharos-testnet
: Container name, customizable.
/data/$WORKSPACE:/data
: Local mount directory, recommended to be set on a high-capacity disk.
public.ecr.aws/k2g7b7g1/pharos/testnet:xxxxxxxx
: Pharos testnet image address.
In your mount directory there should be a list of files:
deploy.light.json
: Pharos binary configuration template
domain.json
: Pharos deployment configuration file
genesis.conf
: The genesis config of the testnet you are connecting to
And the following directories:
pharos-node
: Pharos deployment directory, Contains configuration files, binaries, logs, DB, etc.
pharos-node-client
: Pharos client directory, used to do node management
resources
: Node's keys directory, including consensus signing key and BLS key. Keep it safe
Once the local node starts syncing and you can confirm block height is increasing (this may take up to 3 minutes — do not run docker stop or docker-compose down during this period):
If you want to restore the public data: