DevOps
ElasticSearch Quick Start
Pull docker image
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.2
Starting a single node cluster with Dockeredit:
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.2
Now your elastic will be there http://YOUR_IP:9200/
Profit!
How to enter in a Docker container already running with a new TTY
docker exec -it [container-id] bash
Cat indices API
Request
GET /_cat/indices/<index>
GET /_cat/indices
http://YOUR_IP:9200/_cat/indices
GET /_cat/indices/twi*?v&s=index
http://YOUR_IP:9200/_cat/indices/bookmark*?v&s=index
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open twitter u8FNjxh8Rfy_awN11oDKYQ 1 1 1200 0 88.1kb 88.1kb
green open twitter2 nYFWZEO7TUiOjLQXBaYJpA 1 0 0 0 260b 260b
Leave a reply