Created Sat May, 02 2020 at 06:10AM
I was upgrading my docker-compose (using nextcloud:fpm
image) setup from 16 to 18. I don’t know/remember why I am using fpm
tag or what it even means. I probably followed some guide. This might therefore not be directly applicable to others. But I made this write-up hoping that it provides clues to making someone else’s life easier.
ssh
to the serversudo rsync -a ~/nextcloud ~/nextcloud.BAK
docker exec -u www-data nextcloud_fpm php occ maintenance:mode --on
docker-compose.yml
:
from app:
image: nextcloud:fpm
to
app:
image: nextcloud:17-fpm
I got the tag 17-fpm
searching from here 2.
docker-compose down
docker-compose pull
docker-compose up -d
docker exec -u www-data nextcloud_fpm php occ status
docker exec -u www-data nextcloud_fpm php occ upgrade
nextcloud:fpm
(the latest version).docker exec -u www-data nextcloud_fpm php occ maintenance:mode --off
docker exec --user www-data nextcloud php occ maintenance:mode --on
docker exec nextcloud-db mysql --user=root --password=$MY_MYSQL_ROOT_PASSWORD -D nextcloud -e 'delete from oc_file_locks where 1'
docker exec --user www-data nextcloud php occ maintenance:mode --off