Skip to content

Running a Docker Bananode

not_idol edited this page Jan 23, 2021 · 13 revisions

Latest Docker Banano Node version: v20

Install docker

The easiest way to run a node is by using our docker images. First install docker-ce.

Running the bananode image.

Once docker is installed for your platform (check via docker run hello-world), to run a bananode, simply run:

docker run --restart=unless-stopped -d \
  -p 7071:7071 \
  -p [::1]:7072:7072 \
  -p [::1]:7074:7074 \
  -v ~:/root \
  bananocoin/banano
7071 -> TCP port
7072 -> RPC port
7074 -> Websocket port

You can then check your node as would normally, e.g. using curl.

Stopping the bananode

Run docker ps to list running containers. Use the CONTAINER_ID to shut down the bananode, e.g.

sudo docker stop 19d845535dc1

Example

$ docker run --restart=unless-stopped -d -p 7071:7071 -p [::1]:7072:7072 -p [::1]:7074:7074 -v ~:/root bananocoin/banano
Unable to find image 'bananocoin/banano:latest' locally
latest: Pulling from bananocoin/banano
22dc81ace0ea: Pull complete
1a8b3c87dba3: Pull complete
91390a1c435a: Pull complete
07844b14977e: Pull complete
b78396653dae: Pull complete
9a359b47c2fa: Pull complete
082ef437d263: Pull complete
b808a9115179: Pull complete
34e529540e96: Pull complete
Digest: sha256:d713883a740222d6a5e5c473f34b474c985670768c5a7004c99573e6659d9475
Status: Downloaded newer image for bananocoin/banano:latest
19d845535dc1c3e9b4af0e69d46691e9c95340ed7afc86bb3d6531b102dca474
$