原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/11754705.html
拉取镜像
1 docker pull elasticsearch:7.4.1
创建用户自定义网络
1 docker network create hahanetwork
运行ES
1 docker run --name elasticsearch --net hahanetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -d elasticsearch:7.4.1