Skip to content

Commit

Permalink
Merge pull request #66 from rollkit/65-ctrl+c-doesnt-exit-devnet
Browse files Browse the repository at this point in the history
feat: add -t and -i flags to docker run command so that docker contai…
  • Loading branch information
MSevey authored Sep 28, 2023
2 parents b90aac4 + 9e280f7 commit 2fd64a0
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 @@ -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
```
Expand Down Expand Up @@ -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
```
Expand All @@ -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 <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 2fd64a0

Please sign in to comment.