AI Hints
Home›Elasticsearch Tutorial›Documents, Clusters and Setup
Elasticsearch · Lesson 6 of 120

Running Elasticsearch

One Docker command.

⏱ 2 min read▶ Video at 5:01🎓 Free
Watch this lesson in the Elasticsearch courseWatch on YouTube ↗Full Elasticsearch course

The easiest way to run Elasticsearch on your laptop is Docker. One command downloads it and starts a single node. For learning, we'll switch security off, so we don't need passwords.

  • Use Docker
  • One node
  • Security off, for learning

Start a node

Docker run starts the official Elasticsearch nine image. Port nine two hundred is where you send requests. Single node means it won't look for other nodes. Security disabled is for local learning only, never for production. And we give it one gigabyte of memory.

Terminalbash
docker run -d --name elasticsearch \
  -p 9200:9200 \
  -e discovery.type=single-node \
  -e xpack.security.enabled=false \
  -e ES_JAVA_OPTS="-Xms1g -Xmx1g" \
  elasticsearch:9.5.5

Is it running?

Elasticsearch speaks HTTP, so a request is just a method and a path. We send GET to the root path. Run it. It answers with the node name, the cluster name, and the version, nine point five. Our search engine is up.

Dev Tools Consoletext
GET /
Output
{
  "name": "node-1",
  "cluster_name": "trailhead",
  "cluster_uuid": "uYuJ1LHlRgKA916zByN86g",
  "version": {
    "number": "9.5.5",
    "build_flavor": "default",
    "build_type": "docker",
    "build_hash": "48acba663b09e70b115dd879329141506c377890",
    "build_date": "2026-09-30T22:12:03.984586187Z",
    "build_snapshot": false,
    "lucene_version": "10.5.1",
    "minimum_wire_compatibility_version": "8.19.0",
    "minimum_index_compatibility_version": "8.0.0"
  },
  "tagline": "You Know, for Search"
}

Summary

One Docker command starts a single node on port nine two hundred, and GET slash checks that it's alive. Next, Kibana Dev Tools, where we'll write our requests.

Key takeaways
  • docker run
  • Port 9200
  • GET /
Next up: Kibana Dev Tools — a console for requests