Conflux-rust is a Rust implementation of the Conflux protocol. This is Conflux-rust's docker image.
NOTE: From v2.0 the docker image's default config file is renamed from default.toml to conflux.toml, if you want mount your own config file, please rename it to conflux.toml.
NOTE: If you want use your own config file, need manually add this option dev_pos_private_key_encryption_password = "your-pos-pwd"
Warning: These default tags image's conflux.toml will config a independent chain with 10 genesis accounts (each with 1000 CFX) and all unlocked, you can use it as local Dapp develop environment.
Note: the unlock process maybe need one or two minutes.
If you want run a mainnet or testnet node, you should use the x.x.x-mainnet or x.x.x-testnet tag.
Step 1 pull image from docker hub
$ docker pull confluxchain/conflux-rustStep 2 run the image
$ docker run -p 12537:12537 --rm --name cfx-node confluxchain/conflux-rustYou can attach an folder from local machine to container, which folder should contain conflux config files. You can download a zip file from Conflux-rust release page, the unziped folder will include a hydra.toml or tethys.toml or testnet.toml, rename it to conflux.toml, then you can use this folder as Conflux-rust run context folder. When conflux client runs up, chain data will also save to this folder。
$ docker run -p 12537:12537 -v /path-to-your-config-folder:/root/run --name cfx-node confluxchain/conflux-rustThis repository's fullnode-configs folder also include mainnet and testnet's config file.
- Official doc - How to install and run conflux-rust
- How to run an Independent Chain
- Window 10 Conflux Studio docker setup introduction (Chinese doc)
- When use docker you can't use
jsonrpc_local_tcp_portandjsonrpc_local_http_port, but indevmode you can access local RPC onjsonrpc_http_port - Local dev node will not connect to
testnetormainnet, it is a independent chain