anchor.diff:  ----
   
   This is not very convenient for users, and makes it harder to turn it into configuration for Docker Compose and orchestration tools like Kubernetes.
  +
  +==== Using solr-precreate Command
  +
   So, typically you will use the `solr-precreate` command which prepares the specified core and then runs Solr:
   
   [source,bash]
  
positive.code: On a non-Docker Solr, you would run the server in the background, then use the <<solr-control-script-reference.adoc#,Solr control script>> to create cores and load data.
  With Solr docker you have various options.
  
  The first is exactly the same: start Solr running in a container, then execute the control script manually in the same container:
  
  [source,bash]
  
negative.code: ----
  docker run -d -p 8983:8983 --name my_solr solr solr-create -c gettingstarted
  ----
  
  ==== Custom Set-Up Scripts
  
  Finally, you can run your own command-line and specify what to do, and even invoke mounted scripts.
  For example:
  