Skip to content

Commit

Permalink
docs: πŸ“ add run container to frequently used docker cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Jan 15, 2024
1 parent 982b9cf commit 52867a8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions references/Docker/frequently-used-commands-for-docker-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,34 @@ sudo docker exec -it lightning-node bash
sudo docker ps -a
```

### Run Container

Run the `latest` (tag) Lightning pre-built Docker image (ghcr.io/fleek-network/lightning:latest) from Fleek Network registry:

```sh
sudo docker run \
-e OPT="in" \
-p 4200-4299:4200-4299 \
-p 4300-4399:4300-4399 \
--mount type=bind,source=$HOME/.lightning,target=/home/lgtn/.lightning \
--mount type=bind,source=/var/tmp,target=/var/tmp \
--name lightning-node \
-it ghcr.io/fleek-network/lightning:latest
```

Alternatively, by building the image under name `lightning`:

```sh
sudo docker run \
-e OPT="in" \
-p 4200-4299:4200-4299 \
-p 4300-4399:4300-4399 \
--mount type=bind,source=$HOME/.lightning,target=/home/lgtn/.lightning \
--mount type=bind,source=/var/tmp,target=/var/tmp \
--name lightning-node \
-it lightning
```

### Start Container

```sh
Expand Down

0 comments on commit 52867a8

Please sign in to comment.