-
Notifications
You must be signed in to change notification settings - Fork 81
Running in Docker
ywzqwwt edited this page Apr 11, 2019
·
2 revisions
We keep a Docker image with recent snapshot builds from the develop
branch on DockerHub. In addition to the container based on Ubuntu (158 MB).
To pull the image, run this command:
docker pull truechain/getrue
Start a node with:
docker run -it -p 30313:30313 truechain/getrue
To start a node that runs the JSON-RPC interface on port 8545, run:
docker run -it -p 8545:8545 -p 30313:30313 truechain/getrue --rpc --rpcaddr "0.0.0.0"
WARNING: This opens your container to external calls. "0.0.0.0" should not be used when exposed to public networks
To use the interactive JavaScript console, run:
docker run -it -p 30313:30313 truechain/getrue console
To persist downloaded blockchain data between container starts, use Docker data volumes. Replace /path/on/host
with the location you want to store the data in.
docker run -it -p 30313:30313 -v /path/on/host:/root/.truechain truechain/getrue