Docker Image
If youโve previously found the idea of setting up a Dusk node daunting due to the extensive setup instructions, we have good news. Thanks to Docker, we can provide a process that is greatly simplified. This guide will take you through the process using Docker, allowing you to run your own local Dusk node.
Prerequisites
- ๐ณ Docker: If you donโt have Docker installed, please follow the official guide
- ๐ Internet Connection: Required to download the Docker image and necessary files.
- ๐ ๏ธ Git: Optional, but recommended. Useful for retrieving the node code. Git can be downloaded here.
- ๐ป Terminal: To execute the steps in the Step-By-Step below, you will need to use a terminal application.
- ๐๏ธ x86-AMD64: To create the Docker Image, a processor with the x86-AMD64 architecture is required.
Step-by-Step Instructions
1. Get the Dusk node files
The Dusk Node is called Rusk
. There are two way to get the software, cloning the repository using git, or simply downloading from github
Using Git (Recommended)
Execute the following commands on the terminal:
Without Git
- Go to the Rusk Github repository.
- Click the green โCodeโ button and choose โDownload ZIPโ.
- Extract the ZIP file.
2. Build the Docker Image
With Docker installed and the repository files obtained, letโs build the Docker image. Note that this can take 15 to 20 minutes.
The following command will download all the required dependencies and set up the environment for your Dusk node.
3. Run the Dusk node with Docker
Once the image is built, you can run a Dusk node simply by running in your terminal:
Your node should now be running and giving you output on the blocks it is creating and validating.