# Update sharder image via cli

After the mainnet release, we will be continously monitoring the chain performance and will do releases over time. To update your sharders, please follow the below steps:

1. ssh into the sharder server using below command. Replace `<SERVER-IP-ADDRESS>` with ip address of sharder  server. It will ask for password to ssh so, you need to input server password.

   ```dockercompose
   ssh -o StrictHostKeyChecking=no root@<SERVER-IP-ADDRESS>
   ```
2. Run the following command to set the TAG

   <pre class="language-dockercompose"><code class="lang-dockercompose"><strong>export TAG=v1.20.1
   </strong></code></pre>
3. Proceed to updating images using command below:&#x20;

   ```dockercompose
   yq e -i ".services.sharder.image = \"0chaindev/sharder:${TAG}\"" /var/0chain/sharder/ssd/docker.local/build.sharder/p0docker-compose.yaml
   ```
4. Start sharder with updated image using command below:&#x20;

   ```dockercompose
   cd /var/0chain/sharder/ssd/docker.local/sharder1/
   sudo bash ../bin/start.p0sharder.sh /var/0chain/sharder/ssd /var/0chain/sharder/hdd
   ```

This will automatically pull the latest images and will restart the sharders with the new image.

You can confirm the changes by running:&#x20;

```
sudo docker ps -a | grep 0chaindev/sharder:${TAG}
```

The above command should show 1 line of output.


---

# 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.zus.network/as-onboarding/sharder/update-sharder-image-via-cli.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.
