Docker-sonarqube: document volumes

Created on 12 Jan 2016  路  6Comments  路  Source: SonarSource/docker-sonarqube

The current Dockerfile defines two different volumes. I saw a question on Docker Hub about whether or not there are volumes on this image, so it's probably worth having some doc around that.

help wanted

Most helpful comment

Can those volumes be removed from the Dockerfile and replaced with docker and docker-compose examples on how to mount using volumes in the readme. Having volumes defined in the Dockerfile makes a trivial task of adding plugins complex.

All 6 comments

Docs for Docker Hub are located in https://github.com/docker-library/docs/tree/master/sonarqube Feel free to open PR and suggest change.

Can those volumes be removed from the Dockerfile and replaced with docker and docker-compose examples on how to mount using volumes in the readme. Having volumes defined in the Dockerfile makes a trivial task of adding plugins complex.

@dhoer hm, your proposal conflicts with what other people propose - #44 , #56
As a maintainer of this repository I'm fine to accept either of solutions, given good argumentation for it.
So feel free to elaborate more here about Docker best practices about this subject and provide patch.

I'm kind of a newbie with Docker, but how would volumes defined in the Dockerfile get in your way when using mounted directories or when using docker-compose? As far as I know, the ones defined in the docker-compose would still work and if you mount a local directory that would take the precedence... or am I missing something?

See some advices for SonarQube image from @tianon about volumes in https://github.com/docker-library/official-images/pull/2437#issuecomment-266573937

we updated the doc month ago

Was this page helpful?
0 / 5 - 0 ratings

Related issues

olderzhou picture olderzhou  路  9Comments

rschlick picture rschlick  路  10Comments

EPinci picture EPinci  路  9Comments

alexsuter picture alexsuter  路  3Comments

michal-duda-sonarsource picture michal-duda-sonarsource  路  6Comments