美文网首页
docker 搭建 geth 私链

docker 搭建 geth 私链

作者: ag4kd | 来源:发表于2023-03-23 11:53 被阅读0次

https://geth.ethereum.org/

Docker container

https://geth.ethereum.org/docs/getting-started/installing-geth#docker-container

A Docker image with recent snapshot builds from our develop branch is maintained on DockerHub to support users who prefer to run containerized processes. There four different Docker images available for running the latest stable or development versions of Geth.

  • ethereum/client-go:latest is the latest development version of Geth (default)
  • ethereum/client-go:stable is the latest stable version of Geth
  • ethereum/client-go:{version} is the stable version of Geth at a specific version number
  • ethereum/client-go:release-{version} is the latest stable version of Geth at a specific version family

Pulling an image and starting a node is achieved by running these commands:

docker pull ethereum/client-go
docker run -it -p 30303:30303 ethereum/client-go
docker run \
-d --name ethereum-node \
-p 8545:8545 \
-p 30303:30303 \
-p 8200:8200 \
-p 8546:8546 \
ethereum/client-go \
--networkid "10003" \
--http \
--http.api "db,eth,net,web3,personal,admin,miner,txpool" \
--ws \
--ws.api "eth,net,web3,txpool" \
--ws.port 8546

相关文章

网友评论

      本文标题:docker 搭建 geth 私链

      本文链接:https://www.haomeiwen.com/subject/qeqpihtx.html