Skip to content

Instantly share code, notes, and snippets.

@fhdalikhan
Last active August 9, 2022 15:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhdalikhan/6673d4b04fef66c7089fba4036b24846 to your computer and use it in GitHub Desktop.
Save fhdalikhan/6673d4b04fef66c7089fba4036b24846 to your computer and use it in GitHub Desktop.
docker solr 4 running instructions
some helpful instructions when I have to change my laptop
clone solr 4 image from https://github.com/fhdalikhan/docker-solr4
on windows don't use git bash, use windows terminal with ubuntu using WSL 2, otherwise will get erros due to line endings being CRLF, which should be LF instead.
build using:
docker build -t solr4 .
run using:
// docker run -d -p 8983:8983 --name my_solr4 -P solr4
this instead as I can specify the path to cores folder
docker run --name solr4_latest -v c:/path-to-solr-projects:/opt/solr/example/solr -d -p 8983:8983 -P solr4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment