Detailed tutorial on installing ElasticSearch 6.x in docker

Detailed tutorial on installing ElasticSearch 6.x in docker

First, pull the image (or just create a container and it will be pulled 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 up

docker start elasticsearch

View logs

docker logs elasticsearch

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:
  • Docker installs Elasticsearch7.6 cluster and sets password
  • Sample code for installing ElasticSearch and Kibana under Docker
  • How to quickly deploy an Elasticsearch cluster using docker
  • How to deploy ElasticSearch in Docker
  • Detailed explanation of using Elasticsearch visualization Kibana under Docker
  • Insufficient memory problem and solution when docker starts elasticsearch

<<:  MySql common query command operation list

>>:  Usage of Node.js http module

Recommend

How to quickly query 10 million records in Mysql

Table of contents Normal paging query How to opti...

Summary of some common writing methods that cause MySQL index failure

Preface Recently, I have been busy dealing with s...

Summary of MySQL password modification methods

Methods for changing passwords before MySQL 5.7: ...

Using streaming queries in MySQL to avoid data OOM

Table of contents 1. Introduction 2. JDBC impleme...

Pure CSS to achieve the effect of picture blinds display example

First, let me show you the finished effect Main i...

Detailed explanation of mysql execution plan id is empty (UNION keyword)

Introduction During the work process, slow querie...

Hexadecimal color codes (full)

Red and pink, and their hexadecimal codes. #99003...

Comparison of two implementation methods of Vue drop-down list

Two implementations of Vue drop-down list The fir...

Example usage of JavaScript tamper-proof object

Table of contents javascript tamper-proof object ...

Use Vue3 to implement a component that can be called with js

Table of contents Preface 1. Conventional Vue com...

Introduction to the B-Tree Insertion Process

In the previous article https://www.jb51.net/arti...

Summary of coalesce() usage tips in MySQL

Preface Recently, I accidentally discovered MySQL...

Let's talk about destructuring in JS ES6

Overview es6 adds a new way to get specified elem...