Running Mina Berkeley Node

By Naamah (naamah8064 on Discord)

The reason I wrote this article is I wanted to test deploying a node on the Berkeley network to test ZkApps. So I went to the Berkeley RC1 release note here : https://github.com/MinaProtocol/mina/releases/tag/2.0.0berkeley_rc1 and start following installation guide.

Things didn’t go as expected. At the end of the Berkeley Docker installation process, I tried to launch the mina container that immediately exited with an error.

Trying to find the reason, I ended up with an alternative solution that made things much more straightforward to have my node up and running. This is not a “conventionnal” way of using docker as it implies using a different container entry point but it works (many people with the same problem on the official mina discord channel were able to run a berkeley node following my instructions.)

Let’s start …

Configuration

All those steps have been performed using a Docker installation w/ WSL2 on a windows 11 computer

STEP 1 – Pull latest docker image


You can also user Docker Desktop GUI to pull the docker image

STEP 2 – Create your `keys` and `config` directories on the host

STEP 3 – Getting an interactive bash session to the container

STEP 4 – Generating libp2p keypair

Once inside your container, you now have access to the shell. We’ll use this to generate the libp2p key pair inside the `/root/keys` directory :

STEP 5 – Generating BP keys Then we’ll generate the BP key (if needed) :

STEP 6 – Launch Mina Daemon

Once inside the container, pressing Ctrl + p, Ctrl + q will detach you from the container’s console and leave the container running in the background.

You’ll be able to reattach to you running mina container using :

Launch intercative shell session again and check mina daemon status

You can launch an additionnal interactive session again to interact with mina daemon if needed :

Then you can get the status of you mina daemon and guess what ? It is synced !!

Posted in  

naamah

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top