elasticsearch installation using .deb package in ubuntu
2.2K
Elasticsearch is a full-text search and analytics engine. It is a high scalable search engine. Read elasticsearch Documentation for more information.
Elasticsearch Version:
Pull docker image from Dockerhub using command
docker pull prameswar/elasticsearch
Above command will install latest version.
OR
You can install older version of elasticsearch using tag.
docker pull prameswar/elasticsearch:2.3
OR
You can clone repository and build elasticsearch Dockerfile in your system.
git clone https://github.com/prameswar/elasticsearch.git
cd 2.3
docker build .
list docker images
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
prameswar/elasticsearch latest 692d02c3b921 7 days ago 649.9 MB
Login docker image
docker run -d -ti --name elasticsearch 692d02c3b921
docker exec -ti elasticsearch /bin/bash
change /etc/elasticsearch/elasticsearch.yml for elasticsearch configuration
curl 'http://localhost:9200/_cat/health?v'
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1473099742 18:22:22 elasticsearch green 1 1 0 0 0 0 0 0 - 100.0%
curl 'http://localhost:9200/_cat/nodes?v'
host ip heap.percent ram.percent load node.role master name
127.0.0.1 127.0.0.1 4 98 1.28 d * Isis
curl -XPUT 'http://localhost:9200/test?pretty'
{
"acknowledged" : true
}
curl 'http://localhost:9200/_cat/indices?v'
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open test 5 1 0 0 650b 650b
curl -XDELETE 'http://localhost:9200/test?pretty'
{
"acknowledged" : true
}
Content type
Image
Digest
Size
288.5 MB
Last updated
about 10 years ago
docker pull prameswar/elasticsearch