Run Edge Node with Docker on Linux
If you want to run the edge node with command lines (e.g. on Linux), you can try the the docker image we provide. The current version of the docker image supports elite edge node TFuel staking, video encoding, as well as edge compute for deep learning tasks via the Lavita client. The minimum hardware requirements can be found on this page.
To run the edge node with docker, first make sure docker is installed. Next, pull the latest edge node docker image:
docker pull thetalabsorg/edgelauncher_mainnet:latestAfter the docker image is successfully pulled, start the edge node with the following commands. In the second command, please replace <YOUR_PASSWORD> with a secure password:
docker rm edgelauncher
docker run -e EDGELAUNCHER_CONFIG_PATH=/edgelauncher/data/mainnet -e PASSWORD=<YOUR_PASSWORD> -v ~/.edgelauncher:/edgelauncher/data/mainnet -p 127.0.0.1:15888:15888 -p 127.0.0.1:17888:17888 -p 127.0.0.1:17935:17935 --name edgelauncher -it thetalabsorg/edgelauncher_mainnet:latestIf you have Nvidia GPUs and their drivers properly installed, you can enable CUDA with the --gpus all flag. For example:
docker rm edgelauncher
docker run -d --gpus all --restart unless-stopped -e EDGELAUNCHER_CONFIG_PATH=/edgelauncher/data/mainnet -e PASSWORD=<YOUR_PASSWORD> -v ~/.edgelauncher:/edgelauncher/data/mainnet -p 127.0.0.1:15888:15888 -p 127.0.0.1:17888:17888 -p 127.0.0.1:17935:17935 --name edgelauncher -it thetalabsorg/edgelauncher_mainnet:latestAfter the edge node process is running, you can query the edge node summary for TFuel staking with the following curl commands:
curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"edgecore.GetEdgeNodeSummary","params":[],"id":1}' http://localhost:17888/rpcOther curl commands
Get Node Version
curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"edgecore.GetVersion","params":[],"id":1}' http://localhost:17888/rpcGet Node Status
curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"edgecore.GetStatus","params":[],"id":1}' http://localhost:17888/rpcGet Node Peers
curl -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"edgecore.GetPeers","params":[],"id":1}' http://localhost:17888/rpcGet the Edge Nodes Wallet
The keystore file is in the hidden directory:
~/.edgelauncher/edgecore/key/encryptedUpdated 3 days ago
