Skip to main content
Version: 0.16.0

Updating Juno

It is important to run the latest version of Juno as each update brings new features, security patches, and improvements over previous versions. Follow these steps to update Juno.

info

When running an updated node, use the same db-path as before to avoid restarting the sync and use the already synced database. The commands below use paths relative to your current directory, so run them from the same directory as the previous node.

1. Get the latest Docker image

Download the latest Juno Docker image from the nethermind/juno repository:

docker pull nethermind/juno:latest

2. Stop and remove the current Juno container

Stop the currently running Juno container. If you're unsure of the container name, use docker ps to view all running containers:

docker stop juno

Remove the old container to prevent any conflicts with the new version:

docker rm juno

3. Start a new container with the updated image

Run a new container using the updated Docker image:

# Prepare the database directory
mkdir -p juno_mainnet

# Run the container
docker run -d \
--name juno \
-p 6060:6060 \
-v $(pwd)/juno_mainnet:/snapshots/juno_mainnet \
nethermind/juno \
--http \
--http-port 6060 \
--http-host 0.0.0.0 \
--eth-node <YOUR-ETH-NODE> \
--db-path /snapshots/juno_mainnet

Verify that the node is running correctly with the updated version:

docker logs juno

Updating from source​

Pull the latest changes and rebuild the Docker image:

# Pull the latest updates to the codebase
git pull

# Rebuild the Docker image
docker build -t nethermind/juno:latest .

Then stop, remove, and start the container again with the rebuilt image, as shown in the Docker tab above.

tip

To learn how to configure Juno, check out the Configuration guide.