Update miner image via cli
After the mainnet release, we will be continously monitoring the chain performance and will do releases over time. To update your miners, please follow the below steps:
ssh into the miner server using below command. Replace
<SERVER-IP-ADDRESS>
with ip address of miner server. It will ask for password to ssh so, you need to input server password.ssh -o StrictHostKeyChecking=no root@<SERVER-IP-ADDRESS>
Run the following command to set the TAG
export TAG=v1.20.1
Proceed to updating images using command below:
yq e -i ".services.miner.image = \"0chaindev/miner:${TAG}\"" /var/0chain/miner/ssd/docker.local/build.miner/p0docker-compose.yaml
Start miner with updated image using command below:
cd /var/0chain/miner/ssd/docker.local/miner1/ sudo bash ../bin/start.p0miner.sh /var/0chain/miner/ssd /var/0chain/miner/hdd
This will automatically pull the latest images and will restart the miners with the new image.
You can confirm the changes by running:
sudo docker ps -a | grep 0chaindev/miner:${TAG}
The above command should show 1 line of output.
Last updated