Nextcloud Docker Commands # connect to the mysql database docker --context server exec --user www-data -it nextcloud-app bash # or run an occ command docker --context server exec --user www-data -it nextcloud-app php occ status # run upgrade migrations docker --context server exec --user www-data -it nextcloud-app php occ upgrade -v # set maintenance mode docker --context server exec --user www-data -it nextcloud-app php occ maintenance:mode --on docker --context server exec --user www-data -it nextcloud-app php occ maintenance:mode --off # connect to the database docker --context server exec --user www-data -it nextcloud-db mysql -u root -p'MYDBPASSWD' -D nextcloud