Docker elasticsearch 컨테이너 구동

1 개요[ | ]

Docker elasticsearch 컨테이너 구동
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.5.0
root@localhost:~# docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.5.0
Unable to find image 'elasticsearch:7.5.0' locally
7.5.0: Pulling from library/elasticsearch
ab5ef0e58194: Pull complete
3cd22c4556b6: Pull complete
92fd0fef1570: Pull complete
8bb7091334ad: Pull complete
f18d3bf4529f: Pull complete
239cbb365516: Pull complete
159f6ed20989: Pull complete
Digest: sha256:2a52cbde2ac9e2c2f0b430fe9e87f5041f1f6a02485cb3c76c1874473a0d4055
Status: Downloaded newer image for elasticsearch:7.5.0
e000d33168f8321dc7049cc7a658eabbe7795ac82c2cac7866f1e9d26500994c
root@localhost:~# docker ps | grep elasticsearch
e000d33168f8        elasticsearch:7.5.0   "/usr/local/bin/dock…"   30 seconds ago      Up 29 seconds     0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp   elasticsearch
root@localhost:~# curl localhost:9200
{
  "name" : "e000d33168f8",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "3hmD9OMITlebl7r-SP09mA",
  "version" : {
    "number" : "7.5.0",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "e9ccaed468e2fac2275a3761849cbee64b39519f",
    "build_date" : "2019-11-26T01:06:52.518245Z",
    "build_snapshot" : false,
    "lucene_version" : "8.3.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}
root@localhost:~# curl -X PUT localhost:9200/myindex1
{"acknowledged":true,"shards_acknowledged":true,"index":"myindex1"}
root@localhost:~# curl -X GET localhost:9200/_cat/indices
yellow open myindex1 uK0uGUBQTkOnhg6fovx2hA 1 1 0 0 230b 230b

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}