Run Solr using docker on fedora
Docker is a tool that can help you to build, ship and run distributed applications. The step by step will help you to discover docker.
Installation :
-
yum install docker-io
Run service :
-
service docker start
Check service running :
-
service docker status
Search solr :
-
docker search solr
Find the one that you want in the result. THe description can help you to choose the best for your need.
Pull selected container :
-
docker pull manisnesan/solr-4.8.0
Run your container :
-
docker run -d -p 8983:8983 manisnesan/solr-4.8.0
-d to run the container in the background
-p to map between container port and host port, hostPort:containerPort
Test your container :
check this url http://127.0.0.1:8983/solr/
Know running container :
-
docker ps
Get more information about a specific container :
-
docker top 95066d27cd33
95066d27cd33 is our docker id found using the command “docker ps”
Get log for a specific container :
-
docker logs 95066d27cd33
95066d27cd33 is our docker id found using the command “docker ps”