Maintenance Mode

Hi I just recently updated NextCloud and after update I get

This Nextcloud instance is currently in maintenance mode, which may take a while. This page will refresh itself when the instance is available again.

Contact your system administrator if this message persists or appeared unexpectedly.

I have a docker/nextCloud and they told me to get support here. I tried

docker exec -u www-data -it nextcloudpi /bin/bash
php /var/www/nextcloud/occ maintenance:mode --off

php not found

docker exec -u www-data nextcloudpi php occ maintenance:mode --off

should be ok.

Extra info for people with similar problems.
My user is abc and my occ is on a custom path (giving the error Could not open input file: occ).

Command:

docker exec --user abc nextcloud php /config/www/nextcloud/occ maintenance:mode --off