1. Docker 安装ElasticSearch

1docker search elasticsearch

image-20200814112846425

1docker pull elasticsearch # 默认会拉取 latest 版本
2docker pull elasticsearch:6.8.11  # https://hub.docker.com/ 版本查找
3docker images # 查看本地images

image-20200814135623418

1 docker run -d --name elasticserarch_1 -p 9200:9200 -p 9300:9300 elasticsearch:6.8.11

image-20200814141157795

1docker ps

image-20200814151424343

1curl http://devbox:9200/

image-20200814151619819

2. docker 安装Cerebro

1docker search cerebro  # test

image-20200817201934797

1docker pull lmenezes/cerebro

image-20200817202011324

1docker run -d -p 9002:9000 \
2--restart=unless-stopped \
3--name cerebro \
4-v /etc/localtime:/etc/localtime \
5-v cerebro:/opt/cerebro \
6-h cerebro \
7lmenezes/cerebro
86f036de7c87672903c88f6590d40d052e8c7b79767e410e35b1f2162c268b63f

docker run 参数说明

https://www.runoob.com/docker/docker-run-command.html?ivk_sa=1023345p

访问http://ip:9002 并配置集群

image-20200817202308776

配置完成后点击 connect, 下图中已经建立好两个Index

image-20200817202411452

1docker run -id 

https://www.runoob.com/docker/docker-run-command.html https://blog.csdn.net/qq_19381989/article/details/102781663

1curl