📜  elasticsearch docker instance - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:21.980000             🧑  作者: Mango

代码示例3
if already have the elasticsearch docker image locally
sudo docker run --rm -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elasticsearch --net searchnetwork elasticsearch:7.13.4
check network by following command
sudo network ls
kibna and elasticsearch must be in same network
create network by
sudo create network my_net