Unable to update docker install to 4.8.0

Hi all,

I have a server running Matomo 4.7.1 with docker (docker-compose) with image matomo:fpm-alpine.

I want to upgrade to 4.8.0.

I have done docker-compose pull and the new image has been downloaded. When I do docker inspect on this image, I can see "MATOMO_VERSION=4.8.0" that lets me think that this is the good last image.

But after restarting all the docker compose stack, the web page still displaying 4.7.1…

What is the problem, and solution ?

Thanks,

Xavier

This is an old thread, but since I ran into the same problem and there are at least two related open issues over at Github, I would like to point out that the Matomo Docker image always creates an anonymous volume for /var/www/html and once this volume exists, it prevents Matomo from upgrading. Kind of a Catch-22 IMHO.

Thus, in order to upgrade, one has to remove the volume first (or maybe some specific file inside it, I did not investigate this). The most simple way to accomplish this is to stop and remove the Matomo container so that the volume gets released, then remove the volume. This can be done by docker volume prune, however this will also remove all other dangling volumes. Furthermore, you need to make sure that you have a backup of your config files etc. that reside in this volume! In my case, I have specific volumes for those files, so that they are safe.

See Github issues in the matomo-org/docker repository: