Bench update best practice and error

Hi.
I’m new to frappe and erpnext. I have installed on docker:
Bench 5.24.1
erpnext 15.60.2
frappe 15.68.0
hrms 15.45.1
insights 3.1.3

I would like to know what is the best practice to do updates.
I tried with a simple bench update from the backend container but I got the error:
ERROR: Command ‘git symbolic-ref -q --short HEAD’ returned non-zero exit status 128.

Thanks.
Gigi

1 Like

I have the exact same question.

According to official FAQs it should be enough by running bench --site all migrate:

However I am trying to do exactly that on my backend container after updating/pulling images with new version, the migration completes and I am still at the old version.

Old: v15.59.0
New: v15.61.1

Also tried with bench update but the error @dellui mentioned arises because the workdir inside the container (/home/frappe/frappe-bench) is not a git repository.

Any ideas?

Thank you.