4 Start keosd and nodeos
This section provides guidance on how to start keosd
and nodeosd
services.
Step 1: Start nodeosd
Start a node
To start a node, it is necessary to start two services — nodeosd
and mongo
. To simplify the startup process, use the docker-compose
utility. Enter the directory where docker-compose.yml
is located, and execute the services load command:
The option -d
is required to run container in background.
Check a launch of containers
To check if containers have been started successfully, run the following command:
To see text of log files, you can use the following commands:
Options: --tail
— sets a number of text lines;
-f
— indicates that it is necessary to monitor the update log file.
Check that the text of log files does not contain error messages. There should also be messages about created containers with the names nodeosd
and mongo
. The text should have the following form:
It should also have information about blocks received over the network:
Step 2: Start keosd
Start the keosd service
Connecting a node to blockchain is done using the cleos
utility. This utility requires a running keosd
service to store private keys. The keosd
service can be started on user's computer via Docker.
Start the keosd
service and connect it to the Docker network where nodeosd
is running:
Start the cleos service
Assign alias to run cleos
in the container keosd
:
Check connection to blockchain
Check if your node has been connected to blockchain:
No errors should be while the services are running.
Create storage for private key
The keosd
service automatically locks storage if it is not in use. Storage can be unlocked using the command:
Import the private key
To import your private key, you can use:
Troubleshutting
In case of errors while container is running, it is recommended to stop the services, remove Docker volume and create it again. To stop the services, you can use:
To remove Docker volume, you can use the following command:
Last updated