Nextlcoud occ command missing

I updated nexcloud to version 27.01 and there were no problems. Now I have to run the occ db:add-missing-indices command but I can’t.
Until before the update, I followed this path to launch the occ commands:

sudo docker exec -it nextcloud /bin/bash
cd /config/www/nextcloud
sudo -u abc php occ occ db:add-missing-indices

but now it doesn’t work, there is this error:

Could not open input file: occ

What am I doing wrong?

I had the same problem. You have to run occ like this: docker exec -it nextcloud occ
Found the solution in this reply: Nextcloud 27.0 OCC location and integrity check - #3 by driz