Docker-sonarqube: After restart docker plugins disappear

Created on 1 Apr 2017  路  3Comments  路  Source: SonarSource/docker-sonarqube

When I restart docker container, my plugins disappear.
I'm using a SQL Server database on hostmachine.

invalid

Most helpful comment

I figured this out. /opt/sonarqube/extensions also needs to be persisted as Plugins are stored in this directory. When the container is rebuilt, this directory is set to the initial state without any plugins installed.

This is important for us since we're running Sonar in container management system where it can be moved between hosts automatically (persistent volumes are mounted via NFS.)

All 3 comments

I have the same issue, but it happens when the container is destroyed and re-created pointing to the same-existing /opt/sonarqube/data volume.

I figured this out. /opt/sonarqube/extensions also needs to be persisted as Plugins are stored in this directory. When the container is rebuilt, this directory is set to the initial state without any plugins installed.

This is important for us since we're running Sonar in container management system where it can be moved between hosts automatically (persistent volumes are mounted via NFS.)

@nedvisol I solve persinting this folder (/opt/sonarqube/extensions)

Was this page helpful?
0 / 5 - 0 ratings