If blocked by ‘unhealthy’ docker then this method worked for me… ref:
(don’t need to completely remove portainer, just stop it temporarily).
sudo docker stop portainer
sudo docker restart hassio_supervisor
ha core update
sudo docker start portainer
Or ignore all health conditions (not recommended I guess):
ha jobs options --ignore-conditions healthy