🐳Docker

Authors: [ Ankur | Dapplooker]

System Requirements

CPU
OS
RAM
DISK

8 vCPU

Ubuntu 22.04

32 GB

16+ TB (SSD)

circle-check

Pre-requisite

Before starting, clean the setup then update and upgrade. Install following:

  • Docker

  • Git

  • Go v1.23+

  • aria2 (optional) : Required for parallel download else nohup

Commands

sudo apt update -y && sudo apt upgrade -y && sudo apt auto-remove -y
sudo apt install docker.io git ufw -y jq -y aria2 -y

Firewall Settings

Check status & enable UFW

Set explicit default UFW rules

Allow SSH, HTTP, and HTTPS

Allow Remote connection

Setup Instructions

1

Clone the ZkSync Era Repository

2

Download Snapshot

circle-info

To download the Latest Snapshot visit https://en-backups.matterlabs.devarrow-up-right and copy the desired link. Run the below command in screen as the download may take hours/day depending upon internet speed & snapshot size.

3

Start ZkSync Node

Example docker-compose file

4

Import Database

circle-exclamation
5

Restart the Containers

Monitoring

Monitor Logs of Docker Container

Sync Status

  • Syncing status :

Response should look like:

  • Latest synchronized L2 block :

Response should look like:

REFERENCES

Last updated