diff --git a/README.md b/README.md index 23fc485..1fc962a 100644 --- a/README.md +++ b/README.md @@ -143,16 +143,11 @@ docker compose up --build Above command will run `bitcoind`, `lightningd` and `txood` services on a single node. -### Additional Regtest Commands +## Interacting with Containers -We have to run these commands after bitcoind is up and running. +We can use the `docker container exec ` command to interact with containers and interact with setup using command line tools like `bitcoin-cli`, `lightning-cli`, `vls-cli`, etc. -Create wallet and make it load automatically: -```bash -docker container exec bitcoind-regtest bitcoin-cli createwallet default -docker container exec bitcoind-regtest bitcoin-cli unloadwallet default -docker container exec bitcoind-regtest bitcoin-cli loadwallet default true -``` +### Regtest Commands Generate Address for node: ```bash @@ -183,6 +178,34 @@ docker container exec lightningd-test lightning-cli --testnet clboss-status | le # Show node summary status docker container exec lightningd-test lightning-cli --testnet summary ``` + +## Debugging Containers + +Checking running status and health of containers +```bash +docker ps +``` + +Getting logs from container +```bash +# CONTAINER_NAME=lightningd-test +docker container logs $CONTAINER_NAME +``` + +Restarting containers +```bash +cd vls-container +docker compose --profile vls stop +# to start testnet +docker compose --profile vls up +``` + +Delete containers +```bash +cd vls-container +docker compose --profile vls down +``` + ## Choosing Versions The currently set default versions for services is as follows in the [.env](.env) file: