docker run opendistro elasticsearch 1

docker run opendistro elasticsearch

docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" amazon/opendistro-for-elasticsearch:1.11.0

Here is what the above code is Doing:
1. We’re using the docker run command to run a container.
2. We’re using the -p flag to map the container’s 9200 port to our host’s 9200 port and the container’s 9600 port to our host’s 9600 port.
3. We’re using the -e flag to set the discovery type to single-node.
4. We’re using the amazon/opendistro-for-elasticsearch:1.11.0 image to run the container.

Similar Posts