[root@swarm-x64-1 ~]# docker exec –user www-data <container> php occ upgrade

Update app groupfolders from App Store
Checked for update of app “groupfolders” in App Store
Starting code integrity check…
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level

[root@swarm-x64-1 ~]# docker exec –user www-data <container> php occ maintenance:mode –off

Don’t forget to go with the versions below. Otherwise, you WILL be in pain.

image: mariadb:10.5
image: nextcloud:22