From 478d3a9434232e673f225ea3386d6de969362862 Mon Sep 17 00:00:00 2001 From: Salvatore Ingala <6681844+bigspider@users.noreply.github.com> Date: Mon, 28 Aug 2023 09:09:16 +0200 Subject: [PATCH] How to run commands in the container --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cc80ca..7d0763e 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,17 @@ docker run -d -p 18443:18443 bigspider/bitcoin_matt Exposing port 18443 allows interacting with it using `bitcoin-cli -regtest` as normal, as long as a recent version of `bitcoin-cli` is in the path. -Alternatively, once the container is running, one can access +Alternatively, once the container is running, one can access a terminal in it with: ```bash -docker run -d -p 18443:18443 +docker exec -it /bin/bash +``` + +or run a command directly, for example: + +```bash +docker exec bitcoin-cli -regtest getblockcount + ``` ### Configuration