# Deploy Node in Docker
The easiest way to run Waves Node is by means of Waves Docker container. It takes just one command to enable everything or to change the settings of your node.
You need to install the latest version of Docker.
Please, follow the installation steps described on the Docker website.
# About the Image
- The Docker image contains scripts and configs to run Waves Node from Version 0.13.0 for Testnet, Mainnet or custom networks.
- The image is focused on fast and convenient deployment of Waves Node.
- The container downloads and runs
.jarfile along with configuration files from the releases section.
# Running the Image
It is highly recommended to learn about Waves node configuration in Node Configuration article before running the container.
To start the container, execute the following command:
docker run -it wavesplatform/node
⚠️ We recommend to start the container with the following command for Mainnet:
docker run -p 6869:6869 -p 6868:6868 -e WAVES_NETWORK=MAINNET -e WAVES_LOG_LEVEL=DEBUG -e WAVES_HEAP_SIZE=2g -v YOUR_LOCAL_PATH_HERE:/waves wavesplatform/node
docker run -p 6869:6869 -p 6863:6863 -e WAVES_NETWORK=TESTNET -e WAVES_LOG_LEVEL=DEBUG -e WAVES_HEAP_SIZE=2g -v YOUR_LOCAL_PATH_HERE:/waves wavesplatform/node
You can use the following optional predefined environment variables when running the container:
| ||Plain text seed for node wallet. Container converts it to base58.|
| ||Base58 encoded seed.|
| ||Password for wallet file.|
| ||Node version. Default value is |
| ||Available values are |
| ||Node logging level, available values: |
| ||Java Heap Size limit in -X Command-line Options notation (|
| ||Path to your Waves Configuration file.|
| ||String with IP address and port to send as external address during handshake. Could be set automatically if UPnP is enabled. If |
| ||Set |
Note: If your node crashes immediately after running, your Docker desktop app might be out of memory. You can change Docker preferences, so that it can use more memory.
Depending on the env values the image generates
local.conf file and stores it in
/waves/configs directory. Follow the rules to set a value in the configuration file:
- Determine the path to variable in configuration file. See example.
- Join all section names with two underscores (
- Replace all dashes with one underscore (
- Capitalize the final string.
For instance, if you want to set the value of
waves.rest-api.enable, pass an environment variable