You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by gnandre <ar...@gmail.com> on 2020/07/08 21:36:01 UTC

Solr docker image works with image option but not with build option in docker-compose

Hi,

I am using Solr docker image 8.5.2-slim from https://hub.docker.com/_/solr.
I use it as a base image and then add some more stuff to it with my custom
Dockerfile. When I build the final docker image, it is built successfully.
After that, when I try to use it in docker-compose.yml (with build option)
to start a Solr service, it complains about no permission for creating
directories under /var/solr path. I have given read/write permission to
solr user for /var/solr path in dockerfile.Also, when I use image instead
of build option in docker-compose.yml file for the same image, it does not
throw any errors like that and Solr starts without any issues. Any clue why
this might be happening?

Re: Solr docker image works with image option but not with build option in docker-compose

Posted by Shawn Heisey <ap...@elyograg.org>.
On 7/8/2020 3:36 PM, gnandre wrote:
> I am using Solr docker image 8.5.2-slim from https://hub.docker.com/_/solr.
> I use it as a base image and then add some more stuff to it with my custom
> Dockerfile. When I build the final docker image, it is built successfully.
> After that, when I try to use it in docker-compose.yml (with build option)
> to start a Solr service, it complains about no permission for creating
> directories under /var/solr path. I have given read/write permission to
> solr user for /var/solr path in dockerfile.Also, when I use image instead
> of build option in docker-compose.yml file for the same image, it does not
> throw any errors like that and Solr starts without any issues. Any clue why
> this might be happening?

The docker images for Solr are not created by this project.  They are 
made by third parties.

We are in discussions for bringing one of the docker images into the 
project, but until that happens, support for it will have to come from 
the people that made it.  We know very little about how to deal with any 
problems that are occurring.

I would really like to help, but I do not know what might be wrong, and 
I do not know what questions to ask.

Thanks,
Shawn