From 9a5f796d03f82b8da5c36aa96200e9ce5bc62169 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Wed, 5 Feb 2025 16:37:08 -0700 Subject: [PATCH] Add container doc (#344) --- container/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 container/README.md diff --git a/container/README.md b/container/README.md new file mode 100644 index 000000000..0cbc390c4 --- /dev/null +++ b/container/README.md @@ -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. \ No newline at end of file