hashgraph / hedera-local-node

Run your own local Hedera network for development purposes.
Apache License 2.0
45 stars 52 forks source link

Stopping the dockerized local node affects unrelated networks #685

Closed arianejasuwienas closed 5 days ago

arianejasuwienas commented 2 weeks ago

Description

When stopping the Hedera Local Node (npm run stop) or retrying to start the container, the following command is used:

docker network prune -f

This command affects all networks started by the Docker instance, not just the ones started by the Hedera Local Node repository.

Steps to reproduce

  1. Ensure you have some development networks configured in your local environment. Make sure that some of these networks are not currently in use.
  2. Start the Hedera Local Node.
  3. Stop the Hedera Local Node.
  4. Investigate which networks are affected by the Docker prune operation.

You will likely observe that unrelated networks are impacted by the execution of our script.

Additional context

No response

Hedera network

other

Version

v0.1.0

Operating system

None

### Tasks
- [ ] https://github.com/hashgraph/hedera-local-node/pull/686
arianejasuwienas commented 2 weeks ago

Global prune calls: