Skip to content

Commit

Permalink
add -d flag as optional and include stopping instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed Sep 28, 2023
1 parent cd914d7 commit 3e28d27
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ devnet node for testing without depending on the network or service.
## To run the Docker image from ghcr.io

```bash
docker run -t -i -d \
docker run -t -i \
-p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \
ghcr.io/rollkit/local-celestia-devnet:latest
```
Expand Down Expand Up @@ -34,7 +34,7 @@ docker build . -t celestia-local-devnet
To run the Docker container:

```bash
docker run -t -i -d \
docker run -t -i \
-p 26657:26657 -p 26658:26658 -p 26659:26659 -p 9090:9090 \
celestia-local-devnet
```
Expand All @@ -45,6 +45,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 ou 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 <container-id>
```

To remove the container, use the `docker rm` command to remove the container:

```bash
docker rm <container-id>
```

## Exposed Ports

| Port | Protocol | Address | Description | Node Type |
Expand Down

0 comments on commit 3e28d27

Please sign in to comment.