Use Docker
You can use Docker to run Hyperledger Besu or Geth as a Linea node on the mainnet or testnets.
Prerequisites​
Download and install Docker.
Run a Besu node​
The Besu Docker image does not run on Windows.
Step 1. Download configuration files​
Download the configuration files for the relevant network (in ZIP format) and extract them. The configuration files include the network genesis file, Docker Compose file and Besu configuration file.
- Mainnet
- Linea Sepolia
Download the mainnet besu-mainnet
ZIP file.
You can choose from a range of edge nodes (enodes) for Linea Mainnet. The Besu .zip
includes a
config file named config-snap-mainnet.toml
where enodes are specified. The file uses all enodes
by default.
See our enodes page for a full list of available enodes.
Download the testnet besu-sepolia
ZIP file.
Step 2. Update the Docker Compose file​
In the docker-compose.yaml
file, update the --p2p-host
command to include your public IP address. For example:
--p2p-host=103.10.10.10
You can use this page to find your public IP address.