Skip to content

Commit 0aeab03

Browse files
committed
README: update docker run examples to use -it
1 parent 54f2d6a commit 0aeab03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ To deploy Lightning Charge with Docker, run these commands:
5353

5454
```bash
5555
$ mkdir data # make sure to create the folder _before_ running docker
56-
$ docker run -u `id -u` -v `pwd`/data:/data -p 9735:9735 -p 9112:9112 \
56+
$ docker run -it -u `id -u` -v `pwd`/data:/data -p 9735:9735 -p 9112:9112 \
5757
-e API_TOKEN=mySecretToken \
5858
shesek/lightning-charge
5959
```
@@ -66,7 +66,7 @@ Runs in `testnet` mode by default, set `NETWORK` to override.
6666
If you want to experiment in `regtest` mode and don't care about persisting data, this should do:
6767

6868
```bash
69-
$ docker run -e NETWORK=regtest -e API_TOKEN=mySecretToken -p 9112:9112 shesek/lightning-charge
69+
$ docker run -it -e NETWORK=regtest -e API_TOKEN=mySecretToken -p 9112:9112 shesek/lightning-charge
7070
```
7171

7272
To connect to an existing `lightningd` instance running on the same machine,
@@ -298,7 +298,7 @@ To prevent the test environment files from being deleted after completing the te
298298
To setup a testing environment without running the tests, run `$ npm run testenv`.
299299
This will display information about the running services and keep them alive for further inspection.
300300

301-
Tests can also be run using docker: `$ docker build --build-arg TESTRUNNER=1 -t charge . && docker run charge npm test`
301+
Tests can also be run using docker: `$ docker build --build-arg TESTRUNNER=1 -t charge . && docker run -it charge npm test`
302302

303303
## License
304304

0 commit comments

Comments
 (0)