Skip to content

Commit 3eeeb00

Browse files
committed
docs: add command to delete db directories
1 parent 2402acc commit 3eeeb00

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tooling/l2/dev/README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,25 @@
44

55
1. Download the docker compose
66

7+
```shell
78
curl -L https://raw.githubusercontent.com/lambdaclass/ethrex/main/tooling/l2/dev/docker-compose.yaml -o docker-compose.yaml
9+
```
810

911
2. Start the containers
1012

1113
```shell
1214
docker compose up
1315
```
1416

15-
3. Stop the containers and delete the volumes
17+
3. Stop the containers and delete the databases
1618

1719
> [!NOTE]
18-
> It is recommended to delete all the volumes because blockscout will keep the old state of the blockchain on its db
19-
> but ethrex l2 dev mode starts a new chain on every restart. For this reason we use the `-v` flag
20+
> It is recommended to delete all the databases related to the containers because blockscout will keep the old state of the blockchain on its db
21+
> but ethrex l2 dev mode starts a new chain on every restart.
2022
2123
```shell
22-
docker compose down -v
24+
docker compose down
2325
```
26+
27+
```shell
28+
rm -rf blockscout-db-data dets logs/ redis-data stats-db-data

0 commit comments

Comments
 (0)