Skip to content
🎉 Welcome to the new Aptos Docs! Click here to submit feedback!

Deploy a PFN using Docker

This section describes how to configure and run your PFN using Docker.


Supported only on x86-64 CPUs
Running aptos-core via Docker is currently only supported on x86-64 CPUs. If you have an Apple M1/M2 (ARM64) Mac, use the aptos-core source code approach (above). If M1/M2 support is important to you, comment on this issue:

  1. First, install Docker.
  2. Next, run the following script to prepare your local configuration and data directory for mainnet. This will download the fullnode.yaml configuration file, the genesis.blob and waypoint.txt files for your PFN, and create a data directory to store the blockchain database:
mkdir mainnet && cd mainnet
mkdir data && \
curl -O && \
curl -O && \
curl -O

Don’t want to connect to mainnet?
To connect to other networks (e.g., devnet and testnet), you can find the genesis and waypoint here ➜ Be sure to download the genesis.blob and waypoint.txt for those networks, instead of using the genesis and waypoint pointed to by the curl commands above.

  1. Next, make sure that the fullnode.yaml configuration file that you downloaded above contains only the following content. This will ensure that this configuration is for a PFN and not for another node type (e.g., validator or VFN):
  role: "full_node"
  data_dir: "/opt/aptos/data"
    from_file: "/opt/aptos/etc/waypoint.txt"
  genesis_file_location: "/opt/aptos/etc/genesis.blob"
  - network_id: "public"
    discovery_method: "onchain"
    listen_address: "/ip4/"
  enabled: true
  address: ""

Don’t want to allow inbound connections?
Override the following if you do not want other PFNs connecting to yours: listen_address: "/ip4/".

  1. Next, run the following docker command:
docker run --pull=always \
  --rm -p 8080:8080 \
  -p 9101:9101 -p 6180:6180 \
  -v $(pwd):/opt/aptos/etc -v $(pwd)/data:/opt/aptos/data \
  --workdir /opt/aptos/etc \
  --name=aptos-fullnode aptoslabs/validator:mainnet aptos-node \
  -f /opt/aptos/etc/fullnode.yaml

Sudo access
Note: you may need to prefix the docker command with sudo depending on your configuration.

Docker tags
The mainnet tag always refers to the latest official Docker image tag. You can find the latest hash for comparison at:

You have now successfully configured and started running a PFN in the Aptos mainnet.

Verify your PFN If you want to verify that your PFN is running correctly, you can follow the instructions in the Verify a PFN guide.