Using Docker (Devnet)

Prerequisites

Before starting, ensure that you meet the system requirements for Pharos nodes. Additionally, install the following dependencies:

  • Docker

Deployment Steps

docker pull public.ecr.aws/k2g7b7g1/pharos:latest
docker run -d --name pharos-devnet -v /data/pharos-devnet:/data -p
18100:18100 -p 18200:18200 -p 19000:19000
public.ecr.aws/k2g7b7g1/pharos:latest

Parameter Explanation

  • -name pharos-devnet: Container name, customizable.

  • -v /data/pharos-devnet:/data: Local mount directory, recommended to be set on a high-capacity disk.

  • public.ecr.aws/k2g7b7g1/pharos:latest: Pharos Devnet 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 devnet 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

Last updated