Skip to content
This repository has been archived by the owner on Mar 5, 2025. It is now read-only.

Docker image for Binance full and light nodes

License

Notifications You must be signed in to change notification settings

amberdata/binance-node-docker

This branch is 43 commits behind varnav/binance-node-docker:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0ae15bb · Nov 19, 2019

History

18 Commits
Aug 27, 2019
Oct 9, 2019
Jul 3, 2019
Nov 19, 2019
Apr 27, 2019
Oct 29, 2019
Jul 3, 2019

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%