smartcontracts / simple-optimism-node

The easiest way to run an Optimism node
MIT License
318 stars 106 forks source link

Calling docker compose down appears to wipe volumes #81

Closed Joseph-Singleton closed 6 months ago

Joseph-Singleton commented 1 year ago

I have tried a few times running the node with docker compose up -d

Checking the logs, all seems to be working well and I can see the block/batch numbers increasing.

When I go to shutdown with docker compose down and then restart the node again, the block/batch numbers restart from zero and the node appears to have completely reset.

Is there something I am doing wrong here?

smartcontracts commented 8 months ago

docker-compose down won't wipe anything unless you use the -v or --volumes option which will wipe the volumes that store data. Does op-node start from zero or does op-geth get reset to zero too?

Chomtana commented 6 months ago

Stale

docker compose down doesn't wipe volume

We recommend you to upgrade docker to latest version and docker-compose to version 2