> For the complete documentation index, see [llms.txt](https://docs.zus.network/as-onboarding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zus.network/as-onboarding/sharder/update-sharder-image-via-cli.md).

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