Skip to content

Commit

Permalink
Add container doc (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
dboreham authored Feb 5, 2025
1 parent 247355e commit 9a5f796
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions container/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Libra-node container image

Run the container with a volume mount at `/root/.libra`, for example like this to deploy a full node:

```shell
$ cd some-handy-place
$ mkdir libra-home
$ export libra_container_tag=ghcr.io/0lnetworkcommunity/libra-framework/libra-node:latest
$ docker run -it --volume $(pwd)/libra-home:/root/.libra ${libra_container_tag} libra-config fullnode-init
downloaded genesis block
config created at /root/.libra/fullnode.yaml
fullnode configs initialized ·································· ✓
$ docker run -it -d --volume $(pwd)/libra-home:/root/.libra -p 9101:9101 -p 6182:6182 -p 8080:8080 ${libra_container_tag} libra node
```
The node's API service is now available on port 8080 and monitoring on port 9101.

0 comments on commit 9a5f796

Please sign in to comment.