Analysis of docker installation ElasticSearch6.x instance
Today, the editor will share with you the relevant knowledge points of docker installation ElasticSearch6.x instance analysis, the content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
First of all, pull the mirror image (or create the container directly and pull it out naturally)
Docker pull elasticsearch:6.5.4
Create a container
Docker run-name elasticsearch-net host-e "discovery.type=single-node"-e "network.host=ip address" elasticsearch:6.5.4
Start
Docker start elasticsearch
View the log
Docker logs elasticsearch
You can see that because my server has only 2g of memory, the startup cannot be started because there is not enough memory. Modify the size of the startup memory.
Restart es
Docker run-- name elasticsearch-d-e es_java_opts= "- xms512m-xmx512m"-- net host-e "discovery.type=single-node"-e "network.host=ip address"-p 9200 xms512m 9300 elasticsearch
test
Ip:9200
These are all the contents of the article "docker installation ElasticSearch6.x instance Analysis". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.