Upgrade from 22.1.11 to 23.0.7 in docker failed

Hi there,

I wanted to upgrade my nextcloud running in docker. The last time I did this, i got burned because the upgrade skipped over major versions… so I was cautious this time around.

Checked currently running version: 22.1.11
Newest version available: 24 !

So I added

a version number to my docker compose file

 nextcloud-app:
     image: nextcloud:23.0.7

then ran

docker-compose down
docker-compose pull
docker-compose up -d

Back online but in maintenance mode, looked online found others with the same issue. Solution:

sudo docker exec -it -u www-data 55090da6a189 bash -c ‘./occ maintenance:mode --off’

Nextcloud will be updated to version 23.0.7

Time to click …

Exception: Updates between multiple major versions and downgrades are unsupported.

Isn’t 22 → 23 the major version change I tried? What did I do wrong here?