Skip to content

amberdata/binance-node-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Testnet

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 -v /opt/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 can run both testnet and prod at once, use -p 27147:27147 for publishing RPC port for one of them.

Check logs

docker logs -f binance-testnet

CLI access

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

use tbnbcli for testnet and bnbcli for prod

Update

docker stop binance-testnet && docker rm binance-testnet, pull fresh image with docker pull varnav/binance-node and then run again, data and configs inside /opt/binance-testnet-data are preserved.

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 76.6%
  • Shell 23.4%