File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
solr/solr-ref-guide/modules/deployment-guide/pages Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Next load some of the example data that is included in the container:
5353
5454[source,bash]
5555----
56- docker exec -it my_solr post -c gettingstarted example/exampledocs/manufacturers.xml
56+ docker exec -it my_solr solr post -c gettingstarted example/exampledocs/manufacturers.xml
5757----
5858
5959In the UI, find the "Core selector" popup menu and select the "gettingstarted" core, then select the "Query" menu item.
@@ -245,15 +245,15 @@ docker run --name my_solr -p 8983:8983 solr solr-precreate books
245245# get data
246246mkdir mydata
247247wget -O mydata/books.csv https://raw.githubusercontent.com/apache/solr/main/solr/example/exampledocs/books.csv
248- docker run --rm -v "$PWD/mydata:/mydata" --network=host solr post -c books /mydata/books.csv
248+ docker run --rm -v "$PWD/mydata:/mydata" --network=host solr solr post -c books /mydata/books.csv
249249----
250250
251251The same works if you use the xref:docker-compose[example docker compose cluster], or you can just start your loading container in the same network:
252252
253253[source,bash]
254254----
255255docker run -e SOLR_HOST=solr1 --network=mycluster_solr solr solr create -c books -p 8983
256- docker run --rm -v "$PWD/mydata:/mydata" --network=mycluster_solr solr post -c books /mydata/books.csv --host solr1
256+ docker run --rm -v "$PWD/mydata:/mydata" --network=mycluster_solr solr solr post -c books /mydata/books.csv --host solr1
257257----
258258
259259Alternatively, you can make the data available on a volume at Solr start time, and then load it from `docker exec` or a custom start script.
You can’t perform that action at this time.
0 commit comments