반응형
elasticsesarch, kibana 이미지 다운 및 컨테이너 실행
# elasticsearch 7.8.1 이미지 다운로드
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.8.1
# elasticsearch 컨테이너 실행
# -d : detach 모드 백그라운드 실행
# -p : 9200으로 접속하면 9200으로 접속, 9300으로 접속하면 9300으로 접속
# -e "discovery.type=single-node" : 환경 설정 single-node로 실행
docker run -d -p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" \
--name=elasticsearch docker.elastic.co/elasticsearch/elasticsearch:7.8.1
# kibana 이미지 다운로드
$ docker pull docker.elastic.co/kibana/kibana:7.8.1
# kibana 컨테이너 실행
# --link : 컨테이너 연결
$ docker run -d -p 5601:5601 \
--link elasticsearch:elasticsearch \
--name=kibana docker.elastic.co/kibana/kibana:7.8.1
컨테이너 정상 실행 확인
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4b3e96f8a0e9 docker.elastic.co/kibana/kibana:7.8.1 "/usr/local/bin/dumb…" 7 seconds ago Up 6 seconds 0.0.0.0:5601->5601/tcp, :::5601->5601/tcp kibana
e0eb82623505 docker.elastic.co/elasticsearch/elasticsearch:7.8.1 "/tini -- /usr/local…" About a minute ago Up About a minute 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch
# elasticsearch 확인
$ curl localhost:9200
{
"name" : "e0eb82623505",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "fgMXYyBPQROtGHDFykCBhA",
"version" : {
"number" : "7.8.1",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "b5ca9c58fb664ca8bf9e4057fc229b3396bf3a89",
"build_date" : "2020-07-21T16:40:44.668009Z",
"build_snapshot" : false,
"lucene_version" : "8.5.1",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
# kibana 확인
locahost:5601 접속
반응형
'docker' 카테고리의 다른 글
Docker + Elasticsearch, Kibana 구성 (cluster) (0) | 2022.07.12 |
---|---|
ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] (0) | 2022.07.12 |
WLS 설치 및 WSL 위에 Docker 설치 (0) | 2022.07.10 |
Docker #2 (0) | 2022.06.19 |
Docker #1 (0) | 2022.06.19 |