# Step 4: Start Sharder and Miner Containers

To start all the miner and sharder containers navigate to the `0chain/docker.local/<miner/sharder|i>` directories and run the start script. For example, let's run 1 sharder and 3 miners.

1. Open four different terminal tabs and in the first terminal tab navigate to the `0chain/docker.local/sharder1` directory using

```
cd 0chain/docker.local/sharder1/
```

2.Run the following command for starting the sharder

```
../bin/start.b0sharder.sh
```

3.Wait till the Cassandra is started and the sharder is ready to listen to requests.&#x20;

Here is a screenshot of sharder up and running:

<figure><img src="/files/MYDSIK4eSmkdKA8sE301" alt=""><figcaption><p>Sharder Running</p></figcaption></figure>

4\. Repeat steps 1 and 2 by changing the sharder1 directory to (sharder 2,3 etc) in new terminal tabs to start more sharders.

Notes :

* Run each sharder on new terminal tab and start sharder before miners as they need the genesis magic block.
* Run the command specified in step 2 by only navigating to sharder directories.
* If you are not able to locate sharder directories, have a look at the[ Initialize the Miner and sharder directories](https://github.com/0chain/gitbookdocs/blob/main/broken-reference/README.md) section.
* **For a minimal working setup, at least run 1 sharder and 3 miners.**

5\. To run the miner containers in other three terminal tabs,first navigate to `0chain/docker.local/miner1` directory using

```
cd 0chain/docker.local/miner1/
```

6\. Run the following command for starting the miner

```
../bin/start.b0miner.sh
```

Wait till the miner is ready to accept connections. Here is a screenshot of miner up and running.

<figure><img src="/files/db3jQEt3NHoQbrXyLuR6" alt=""><figcaption><p>Miner Running</p></figcaption></figure>

7\. Repeat steps 5 and 6 by changing the miner1 directory to (miner 2,3 etc) in new terminal tabs to start more miners.

**Notes:**

* Run each miner on a new terminal tab
* To avoid errors, run the command specified in step 6 by only navigating to miner directories.
* If you are not able to locate miner directories, have a look at the [Initialize the Miner and sharder directories](https://github.com/0chain/gitbookdocs/blob/main/broken-reference/README.md) section.
* **For a minimal working setup, at least run 1 sharder and 3 miners.**


---

# 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/step-4-start-sharder-and-miner-containers.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.
