Docker : issue with Sonarqube and prometheus

Job ID: 32588145

Budget: €8 – €30 EUR

I have two containers that no longer work on docker. They are SonarQube and Prometheus.

For Sonarqube I have this error message:
"Cleaning or creating temp directory /opt/sonarqube/temp
Exception in thread "main" java.nio.file.AccessDeniedException: /opt/sonarqube/temp/README.txt"

For Prometheus I have this error message :
err="opening storage failed: lock DB directory: open /prometheus/lock: permission denied"
Related categories: Linux Software Architecture MySQL Ubuntu Docker