Unable to create the cache directory (/var/www/html/tmp/templates_c/b3)

Hi, I am currently running Matomo via docker and have got an issue.

When I visit the page it is saying:

Unable to create the cache directory (/var/www/html/tmp/templates_c/b3).

I have connected via shell to the docker container and permissions seem fine.

drwxr-x— 2 www-data www-data 4096 Jan 5 15:45 templates_c

Im failry new to Docker and assume as it self updated and was created from the docker image that it would just be fine.

would someone be able to point me in the right direction please?

I am running matomo:latest

Thanks