nextcloud docker upgrade
1) activate maintenance mode
$ docker exec -u www-data -it nextcloud_app_1 php occ maintenance:mode --on
2) backup database
$ docker exec -it nextcloud_db_1 mariadb-dump -u <username> -p <password> nextcloud > nextcloud.sql
3) deactivate special extensions
$ docker exec -u www-data nextcloud_app_1 php occ app:list
$ docker exec -u www-data nextcloud_app_1 php occ app:disable <ext.name>
4) shut down container (optional)
$ docker-compose down
5) update version number in docker-compose.yml
6) update container
$ docker-compose pull (optional)
$ docker-compose up -d
$ docker logs nextcloud_app_1 -f (optional)
6) check status in administration settings and follow the instructions there
Last modified: 2025-06-11 18:37h
Versions: Previous