1 개요[ | ]
- Docker opendistro-for-elasticsearch 컨테이너 구동
Bash
Copy
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" amazon/opendistro-for-elasticsearch:1.4.0
Console
Copy
root@wsl:~# docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" amazon/opendistro-for-elasticsearch:1.4.0
Unable to find image 'amazon/opendistro-for-elasticsearch:1.4.0' locally
1.4.0: Pulling from amazon/opendistro-for-elasticsearch
ab5ef0e58194: Pull complete
8591b6a81bc3: Pull complete
d207b70df6af: Pull complete
3a622edb3461: Pull complete
a3f2e7b298c2: Pull complete
e26166d349d0: Pull complete
2bb48fae5153: Pull complete
fe3fdc07a4c7: Pull complete
bef15f2dc3e5: Pull complete
402b62ac98b6: Pull complete
888772bc3036: Pull complete
745c417c66b9: Pull complete
Digest: sha256:6df71eb046393eab027e96a6fa9cf6c433297d82800db439dd66ce89157e5ab9
Status: Downloaded newer image for amazon/opendistro-for-elasticsearch:1.4.0
7c4017863db64c1e8f4ebec4651d828925d952f7658c9efb663a5c7eecc020a4
Console
Copy
root@wsl:~# docker ps | grep elasticsearch
7c4017863db6 amazon/opendistro-for-elasticsearch:1.4.0 "/usr/local/bin/dock…" 7 minutes ago Up 7 minutes 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp, 9600/tcp elasticsearch
Console
Copy
root@wsl:~# curl -k https://localhost:9200
Unauthorized
Console
Copy
root@wsl:~# curl -k -uadmin:admin https://localhost:9200
{
"name" : "7c4017863db6",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "XTJx5Q7SSD-9DW2M9ZyKTQ",
"version" : {
"number" : "7.4.2",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "2f90bbf7b93631e52bafb59b3b049cb44ec25e96",
"build_date" : "2019-10-28T20:40:44.881551Z",
"build_snapshot" : false,
"lucene_version" : "8.2.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
Console
Copy
root@wsl:~# curl -k -uadmin:admin https://localhost:9200/_cat/indices
yellow open security-auditlog-2023.02.10 VQ8PANsJREaYQ3U_JgEHAw 1 1 17 0 107.5kb 107.5kb
green open .opendistro_security m9l9xdHfTu6N0a0vPRDuMg 1 0 6 0 32.8kb 32.8kb
2 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.