# Restarting Sharder and Miner Containers with CleanDB.

### Restarting the nodes

To reflect a change in config files [0chain.yaml](https://github.com/0chain/0chain/blob/staging/docker.local/config/0chain.yaml) and [sc.yaml](https://github.com/0chain/0chain/blob/staging/docker.local/config/sc.yaml), just restart the miner or sharder to take the new configuration. If you're doing a code change locally or pulling updates from GitHub, you need to build.

```
git pull
docker.local/bin/build.base.sh && docker.local/bin/build.sharders.sh && docker.local/bin/build.miners.sh
```

For existing code and if you have tried running once, make sure there are no previous files and processes.

<pre><code><strong>docker stop $(docker ps -a -q)
</strong>docker.local/bin/clean.sh
docker.local/bin/init.setup.sh
docker.local/bin/sync_clock.sh
</code></pre>

Then go to individual miner/sharder:

```
../bin/start.b0sharder.sh (start sharders first!)
../bin/start.b0miner.sh
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-old.zus.network/guides/setup-a-blockchain/restarting-sharder-and-miner-containers-with-cleandb..md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
