# 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
```
