diff --git a/README.md b/README.md index 8dfd117..ba01377 100644 --- a/README.md +++ b/README.md @@ -447,14 +447,15 @@ ExecStart=/usr/bin/certbot renew --quiet --agree-tos --deploy-hook "docker exec ### Docker Containers Nextcloud is the annoying one here. Unless you want to take the risk, you need to upgrade to each major version, incrementally. You can do this by changing the base image in the `nextcloud/DockerFile` file to `nextcloud:{version}-fpm-alpine`. +> You should upgrade to the latest minor version of the current major version first. Once you have done that you can upgrade all the images: ``` sudo docker-compose pull # to upgrade the images sudo docker-compose pull nextcloud:{version}-fpm-alpine # because docker-compose can't tell that it is used by the nextcloud image sudo docker-compose down # to destroy all the existing containers sudo docker-compose up --force-recreate --build -d # to rebuild all the containers with the newest images -sudo docker-compose exec -u 82 -it nextcloud php /var/www/html/occ upgrade -vvv # to run the upgrade script -sudo docker-compose exec -u 82 -it nextcloud php /var/www/html/occ maintenance:mode --off # to turn the site back on +sudo docker-compose exec -u 1000 -it nextcloud php /var/www/html/occ upgrade -vvv # to run the upgrade script +sudo docker-compose exec -u 1000 -it nextcloud php /var/www/html/occ maintenance:mode --off # to turn the site back on ``` Provided that all went smoothly, you should do it all again if there are more major versions for nextcloud.