Thanks @fabian_garzon_baquero but looks like I am out of diskspace so it does not work.
root@demo-20578186 ~ # sudo docker exec consul ./vendor/consul/consul-linux kv get clusters/default/serial _number
OCI runtime exec failed: open /tmp/runc-process254483419: no space left on device: unknown
root@demo-20578186 ~ #
You can Try Delete the Old versions from previous Upgrades or Delete parquet files to free some space.
Rectification is to manually remove old images. Please run the below commands on the master as well as all the data nodes.
Inspect space on the storage engine.