diff --git a/README.md b/README.md index ec052d2..241d79f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ For information about the different node types, see ## To run the Docker image from ghcr.io ```bash -docker run \ +docker run -t -i \ -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ ghcr.io/rollkit/local-celestia-devnet:latest ``` @@ -40,7 +40,7 @@ docker build . -t celestia-local-devnet To run the Docker container: ```bash -docker run \ +docker run -t -i \ -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ celestia-local-devnet ``` @@ -51,6 +51,41 @@ Test that the HTTP gateway server is up: curl -X GET http://127.0.0.1:26659/head ``` +## Running a Detached Container + +If you would like the run the container in the background, you can use the +`-d` flag: + +```bash +docker run -d -t -i \ + -p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \ + celestia-local-devnet +``` + +## Stopping the Container + +To stop the container when you are attached to the container, you can use +`Ctrl+C` to stop the container. + +To stop the container when you are detached from the container, you can use the +`docker ps` command to find the container ID: + +```bash +docker ps +``` + +Then, use the `docker stop` command to stop the container: + +```bash +docker stop +``` + +To remove the container, use the `docker rm` command to remove the container: + +```bash +docker rm +``` + ## Exposed Ports | Port | Protocol | Address | Description | Node Type |