Skip to main content
Version: 0.16.0

Running Juno

You can run a Juno node using several methods:

tip

You can use a snapshot to quickly synchronise your node with the network. Check out the Sync from a Snapshot guide to get started.

1. Get the Docker image

Juno Docker images can be found at the nethermind/juno repository on Docker Hub. Download the latest image:

docker pull nethermind/juno

You can also build the image locally:

# Clone the Juno repository
git clone https://github.com/NethermindEth/juno
cd juno

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

2. Run the Docker container

# Prepare the database directory
mkdir -p juno_mainnet

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

You can view logs from the Docker container using the following command:

docker logs -f juno
tip

The --ws, --ws-port, and --ws-host options enable the WebSocket RPC server, which is required for subscriptions like starknet_subscribeNewHeads. Check out the WebSockets guide to learn more.

Building from source

You can build the Juno binary or Docker image from the source code to access the latest updates or specific versions.

Building the Docker image requires only Docker.

1. Clone the repository

git clone https://github.com/NethermindEth/juno
cd juno
tip

You can use git tag -l to view specific version tags.

2. Build the Docker image

docker build -t nethermind/juno:latest .

3. Run the Docker container

# Prepare the database directory
mkdir -p juno_mainnet

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

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