// troubleshooting guide · opensearch

OpenSearch Docker Container Won't Start

Status
Fixed in latest version
platforms:
Docker, Linux, Windows (WSL), macOS
updated:
November 15, 2026
reports:
3
Method
how we research
Share

RUNBOOK · opensearch/docker-wont-start3 FIXES

// quick answer

Since 2.12 OpenSearch needs OPENSEARCH_INITIAL_ADMIN_PASSWORD with a strong value, and the host needs vm.max_map_count of at least 262144.

Most likely fix: Set a strong admin password

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Set a strong admin password

    1. 01Export OPENSEARCH_INITIAL_ADMIN_PASSWORD or put it in a .env next to docker-compose.yml
    2. 02Use 8+ characters with upper, lower, number and special character
    Did this fix it?
  2. FIX 2Raise vm.max_map_count

    1. 01Linux: sudo sysctl -w vm.max_map_count=262144 and persist in /etc/sysctl.conf
    2. 02Docker Desktop: set it inside the Docker VM or WSL docker-desktop distro, not in the container
    Did this fix it?
  3. FIX 3Read the logs

    1. 01docker logs <container> will show which check failed
    Did this fix it?

Symptoms

Container exits right after start; logs mention a missing or weak admin password, or 'max virtual memory areas vm.max_map_count [65530] is too low'.

Why it happens

  • C-01No OPENSEARCH_INITIAL_ADMIN_PASSWORD set (required since 2.12)
  • C-02Password too weak for the default policy
  • C-03vm.max_map_count too low on the host or Docker VM
  • C-04Insufficient memory for the heap

// this guide also covers

  • opensearch docker not starting
  • opensearch initial admin password
  • opensearch vm.max_map_count too low

Still not working?

If OpenSearch keeps failing, you're not alone. See every OpenSearch problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch OpenSearch Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

Other OpenSearch errors

All 11 OpenSearch errors and fixes →