一、服务部署
1.1 下载以太坊基础镜像
docker pull ethereum/client-go:v1.9.24
1.2 启动容器
mkdir -p /opt/docker/rinkeby-eth/rinkeby/
# pwd
/opt/docker/rinkeby-eth
# vim rinkeby-eth.sh
#!/bin/bash
docker rm -f rinkeby-eth
docker run -itd --restart=unless-stopped -v /etc/localtime:/etc/localtime -v /etc/timezone:/etc/timezone --name rinkeby-eth -v $(pwd)/rinkeby:/root/.ethereum/rinkeby -p 8545:8545 -p 30303:30303 ethereum/client-go:v1.9.24 --rinkeby --rpcapi db,eth,net,web3,personal,web3,txpool --syncmode=fast --rpc --rpcaddr 0.0.0.0 --cache 2048 --maxpeers 30 --allow-insecure-unlock
docker logs -f rinkeb