- Build and create dspace container without the volume
- Copy the solr data
docker cp dspace:/dspace/solr solrData
- Re-create dspace container with a volume
./solrData:/dspace/solr
- Build and create dspace container with the volume
- Enter dspace container as root
docker exec -it dspace bash
- Change the owner of solr data
chown -R dspace:dspace /dspace/solr
- Exit and restart the container
docker restart dspace