This page describes the configuration of a single Wasp node in combination with Docker.
The docker setup comes preconfigured and should work as is, differing setups might require a different configuration.
In this case the following instructions should be read Running a Node.
Running a Wasp Node
Install and Build Your Node
To run a Wasp node with Docker you will need to:
- Check out the project:
git clone https://github.com/iotaledger/wasp.git
- Switch to the
git checkout develop
- Build the main image:
docker build -t wasp-node .
The build process will copy the docker_config.json file into the image, which will be used when the node gets started.
By default, the build process will use
-tags rocksdb as a build argument.You can modify this argument
Run Your Node
After the build process has finished, you can start your Wasp node by running:
docker run wasp-node
Configuration of built images
After the build process has been completed, you can still inject a different configuration file into a new container by running:
docker run -v $(pwd)/alternative_docker_config.json:/etc/wasp_config.json wasp-node
You can also add further configuration using arguments:
docker run wasp-node --l1.inxAddress="alt_hornet:9029"
To get a list of all available arguments, run the node with the argument '--help'
docker run wasp-node --help