First, pull the image (or just create a container and it will be pulled naturally) Create a container docker run --name elasticsearch --net host -e "discovery.type=single-node" -e "network.host=IP address" elasticsearch:6.5.4 start up View logs You can see that my server has only 2G memory, so it cannot start due to insufficient memory. Change the startup memory size. 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:9200 -p 9300:9300 elasticsearch test IP:9200 Summarize The above is a detailed tutorial on how to install ElasticSearch 6.x with Docker. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time! You may also be interested in:
|
<<: MySql common query command operation list
>>: Usage of Node.js http module
Detailed explanation of MySQL exporting data from...
In this article, I will show you how to install a...
1. Use curl command to access by default: # curl ...
1. <dl> defines a list, <dt> defines ...
Here are the detailed steps: 1. Check the disk sp...
1. CSS realizes fixed width on the left and adapt...
1. Who is tomcat? 2. What can tomcat do? Tomcat i...
Introduction to MySQL Window Functions MySQL has ...
First install ssh in Linux, taking centos as an e...
Preface Recently I encountered a deadlock problem...
I saw a good idea and recorded it. I have used jQ...
1. Use Canvas images as CSS background images The...
Table of contents 1. Brief Introduction 2. setInt...
I reinstalled the system some time ago, but I did...
The requirements are as follows: There are multip...