Docker
Last updated
Was this helpful?
Last updated
Was this helpful?
This document describes:
;
;
;
.
You must have on a host machine and be familiar .
The default node configuration is sufficient to join the mainnet:
You should see the console output of the running node and a lot of information related to syncing with the network.
To join the testnet a network_id with value ae_uat
argument must be passed:
You should see the console output of the running node and a lot of information related to syncing with the network.
Please note that all the examples below:
All releases have their own docker image tag as well. Latest release is published behind latest
docker image tag. Master branch of the source code is tagged as master
.
To pull the latest release docker image run:
Always make sure you have the latest docker image prior running any of the below commands.
Configuration can also be changed by providing environment variables to the container:
Replace ~/.aeternity/myaedb
with location of your choice where the data will be stored in.
** Note that you cannot switch networks using the same database **
Mining is disabled by default. If you want to mine with docker you have to enable it in the configuration:
The example above uses the less memory intensive lean miner, if you want to use the default (memory intensive mean) miner, remove the mining.cuckoo
section and increase the docker container memory at least 4GB.
See and below.
To run small local network for development and testing purposes, please refer to the
Docker image is automatically build and published on .
use the Docker -P
which , for good network connectivity refer to how to setup firewall and/or port mapping to the host machine
run the container in for easier debugging (console output).
Тo change the node configuration, a should be used to mount the configuration file to a special path on the container (/home/aeternity/.aeternity/aeternity/aeternity.yaml
). For example, assuming your configuration file is located at ~/.aeternity/myaeternity.yaml
on the host machine:
More details about node configuration can be found in .
The blockchain data is persisted by default at /home/aeternity/node/data/mnesia
, inside the Docker container. In order to persist the data in a directory on the host machine, use .
You also need to provide beneficiary account in the configuration, please refer to how to create one if you don't have yet.
For more information see .