edobry / binance-node-docker

Docker image for Binance full and light nodes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

binance-node-docker

Test status Docker Pulls MIT license

Binance full node docs
Binance full node repo

Docker image for Binance Full Node

Features:

  • Spin up full Binance node with single command.
  • Works for testnet, prod, or both at once.
  • Small image about 100MB, compared to bigger than 6 GB official repository.
  • Easy updates

Don't know what all this is about? Read newbie guide.

Run interactively

docker run --rm -it --ulimit nofile=16000:16000 varnav/binance-node

Run as daemon

ufw allow 27146/tcp
docker run -d --name binance-node -v binance-data:/opt/bnbchaind -e "BNET=prod" -p 27146:27146 -p 27147:27147 -p 26660:26660 --restart unless-stopped --security-opt no-new-privileges --ulimit nofile=16000:16000 varnav/binance-node

You will need different port mapping if running testnet: -p 26656:26656 -p 26657:26657

Check logs

docker logs -f binance-node

CLI access

docker exec -it binance-node /bin/bash
tbnbcli version

use tbnbcli for testnet and bnbcli for prod

Update

docker stop binance-node && docker rm binance-node, pull fresh image with docker pull varnav/binance-node and then run again, data and configs in the volume binance-data are preserved.

Run with kubernetes

kubectl apply -f .\kubernetes-deployment.yml
kubectl expose deployment binance-node --type LoadBalancer

Devel

Building devel branch locally

git clone --branch=devel https://github.com/varnav/binance-node-docker.git
cd binance-node-docker && docker build . -t varnav/binance-node:devel

Run and get access to CLI

docker run --rm -d --name binance-devel varnav/binance-node:devel
docker exec -it binance-devel /bin/bash
tbnbcli version

About

Docker image for Binance full and light nodes

License:MIT License


Languages

Language:Dockerfile 76.3%Language:Shell 23.7%