专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

bitnami/elasticsearch Docker 镜像 - 轩辕镜像

elasticsearch
bitnami/elasticsearch
自动构建
Bitnami为Elasticsearch提供的安全镜像,是预先配置且经过安全加固的解决方案,集成开源搜索引擎Elasticsearch的核心功能,可支持日志分析、全文搜索、实时数据处理等多种应用场景,通过优化性能、简化部署流程并遵循安全最佳实践,助力用户快速构建安全可靠的Elasticsearch运行环境,适用于开发、测试及生产环境,有效降低配置复杂度与潜在安全风险。
84 收藏0 次下载
🚀专业版镜像服务,面向生产环境设计
版本下载
🚀专业版镜像服务,面向生产环境设计

Bitnami Elasticsearch Stack

What is Elasticsearch?

Elasticsearch is a distributed search and analytics engine. It is used for web search, log monitoring, and real-time analytics. Ideal for Big Data applications.

Overview of Elasticsearch Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

TL;DR

console
docker run --name elasticsearch bitnami/elasticsearch:latest

You can find the available configuration options in the Environment Variables section.

Why use Bitnami Secure Images?

Those are hardened, minimal CVE images built and maintained by Bitnami. Bitnami Secure Images are based on the cloud-optimized, security-hardened enterprise OS Photon Linux. Why choose BSI images?

  • Hardened secure images of popular open source software with Near-Zero Vulnerabilities
  • Vulnerability Triage & Prioritization with VEX Statements, KEV and EPSS Scores
  • Compliance focus with FIPS, STIG, and air-gap options, including secure bill of materials (SBOM)
  • Software supply chain provenance attestation through in-toto
  • First class support for the internet’s favorite Helm charts

Each image comes with valuable security metadata. You can view the metadata in our public catalog here. Note: Some data is only available with commercial subscriptions to BSI.

!Alt text !Alt text

If you are looking for our previous generation of images based on Debian Linux, please see the Bitnami Legacy registry.

How to deploy Elasticsearch in Kubernetes?

Deploying Bitnami applications as Helm Charts is the easiest way to get started with our applications on Kubernetes. Read more about the installation in the Bitnami Elasticsearch Chart GitHub repository.

Why use a non-root container?

Non-root container images add an extra layer of security and are generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits. Learn more about non-root containers in our docs.

Supported tags and respective Dockerfile links

Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags in our documentation page.

You can see the equivalence between the different tags by taking a look at the tags-info.yaml file present in the branch folder, i.e bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml.

Subscribe to project updates by watching the bitnami/containers GitHub repo.

Get this image

The recommended way to get the Bitnami Elasticsearch Docker Image is to pull the prebuilt image from the Docker Hub Registry.

console
docker pull bitnami/elasticsearch:latest

To use a specific version, you can pull a versioned tag. You can view the list of available versions in the Docker Hub Registry.

console
docker pull bitnami/elasticsearch:[TAG]

If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the docker build command. Remember to replace the APP, VERSION and OPERATING-SYSTEM path placeholders in the example command below with the correct values.

console
git clone [***]
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .

Persisting your application

If you remove the container all your data will be lost, and the next time you run the image the application will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.

For persistence you should mount a directory at the /bitnami path. If the mounted directory is empty, it will be initialized on the first run.

console
docker run \
    -v /path/to/elasticsearch-data-persistence:/bitnami/elasticsearch/data \
    bitnami/elasticsearch:latest

or by making a minor change to the docker-compose.yml file present in this repository:

yaml
elasticsearch:
  ...
  volumes:
    - /path/to/elasticsearch-data-persistence:/bitnami/elasticsearch/data
  ...

NOTE: As this is a non-root container, the mounted files and directories must have the proper permissions for the UID 1001.

It is also possible to use multiple volumes for data persistence by using the ELASTICSEARCH_DATA_DIR_LIST environment variable:

yaml
elasticsearch:
  ...
  volumes:
    - /path/to/elasticsearch-data-persistence-1:/elasticsearch/data-1
    - /path/to/elasticsearch-data-persistence-2:/elasticsearch/data-2
  environment:
    - ELASTICSEARCH_DATA_DIR_LIST=/elasticsearch/data-1,/elasticsearch/data-2
  ...

Connecting to other containers

Using Docker container networking, an Elasticsearch server running inside a container can easily be accessed by your application containers.

Containers attached to the same network can communicate with each other using the container name as the hostname.

Using the Command Line
Step 1: Create a network
console
docker network create app-tier --driver bridge
Step 2: Launch the Elasticsearch server instance

Use the --network app-tier argument to the docker run command to attach the Elasticsearch container to the app-tier network.

console
docker run -d --name elasticsearch-server \
    --network app-tier \
    bitnami/elasticsearch:latest
Step 3: Launch your application container
console
docker run -d --name myapp \
    --network app-tier \
    YOUR_APPLICATION_IMAGE

IMPORTANT:

  1. Please update the YOUR_APPLICATION_IMAGE_ placeholder in the above snippet with your application image
  2. In your application container, use the hostname elasticsearch-server to connect to the Elasticsearch server
Using a Docker Compose file

When not specified, Docker Compose automatically sets up a new network and attaches all deployed services to that network. However, we will explicitly define a new bridge network named app-tier. In this example we assume that you want to connect to the Elasticsearch server from your own custom application image which is identified in the following snippet by the service name myapp.

yaml
version: '2'

networks:
  app-tier:
    driver: bridge

services:
  elasticsearch:
    image: bitnami/elasticsearch:latest
    networks:
      - app-tier
  myapp:
    image: YOUR_APPLICATION_IMAGE
    networks:
      - app-tier

IMPORTANT:

  1. Please update the YOUR_APPLICATION_IMAGE_ placeholder in the above snippet with your application image
  2. In your application container, use the hostname elasticsearch to connect to the Elasticsearch server

Launch the containers using:

console
docker-compose up -d

Configuration

Environment variables
Customizable environment variables
NameDescriptionDefault Value
ELASTICSEARCH_CERTS_DIRPath to certificates folder.${DB_CONF_DIR}/certs
ELASTICSEARCH_DATA_DIR_LISTComma, semi-colon or space separated list of directories to use for data storagenil
ELASTICSEARCH_BIND_ADDRESSElasticsearch bind addressnil
ELASTICSEARCH_ADVERTISED_HOSTNAMEElasticsearch advertised hostname, used for publishnil
ELASTICSEARCH_CLUSTER_HOSTSElasticsearch cluster hostsnil
ELASTICSEARCH_CLUSTER_MASTER_HOSTSElasticsearch cluster master hostsnil
ELASTICSEARCH_CLUSTER_NAMEElasticsearch cluster namenil
ELASTICSEARCH_HEAP_SIZEElasticsearch heap size1024m
ELASTICSEARCH_MAX_ALLOWED_MEMORY_PERCENTAGEElasticsearch maximum allowed memory percentage100
ELASTICSEARCH_MAX_ALLOWED_MEMORYElasticsearch maximum allowed memory amount (in megabytes)nil
ELASTICSEARCH_MAX_TIMEOUTElasticsearch maximum init timeout60
ELASTICSEARCH_LOCK_ALL_MEMORYSets bootstrap.memory_lock parameterno
ELASTICSEARCH_DISABLE_JVM_HEAP_DUMPDisable JVM Heap dumpno
ELASTICSEARCH_DISABLE_GC_LOGSDisable GC logsno
ELASTICSEARCH_IS_DEDICATED_NODEIf false, Elasticsearch will be configured with all the roles, deploy as dedicated node using DB_NODE_ROLES.no
ELASTICSEARCH_MINIMUM_MASTER_NODESMinimum number of master nodesnil
ELASTICSEARCH_NODE_NAMEElasticsearch node namenil
ELASTICSEARCH_FS_SNAPSHOT_REPO_PATHElasticsearch repo path to restore snapshots from system repositorynil
ELASTICSEARCH_NODE_ROLESComma-separated list of Elasticsearch roles. If empty, will be deployed as a coordinating-only node.nil
ELASTICSEARCH_PLUGINSList of Elasticsearch plugins to activatenil
ELASTICSEARCH_TRANSPORT_PORT_NUMBERElasticsearch node port number9300
ELASTICSEARCH_HTTP_PORT_NUMBERElasticsearch port9200
ELASTICSEARCH_ACTION_DESTRUCTIVE_REQUIRES_NAMEEnable action destructive requires namenil
ELASTICSEARCH_ENABLE_SECURITYEnable Elasticsearch security settings.false
ELASTICSEARCH_PASSWORDPassword for "elastic" user.bitnami
ELASTICSEARCH_TLS_VERIFICATION_MODEElasticsearch TLS verification mode in transport layer.full
ELASTICSEARCH_TLS_USE_PEMConfigure Security settings using PEM certificates.false
ELASTICSEARCH_KEYSTORE_PASSWORDPassword for the Elasticsearch keystore containing the certificates or password-protected PEM key.nil
ELASTICSEARCH_TRUSTSTORE_PASSWORDPassword for the Elasticsearch truststore.nil
ELASTICSEARCH_KEY_PASSWORDPassword for the Elasticsearch node PEM key.nil
ELASTICSEARCH_KEYSTORE_LOCATIONPath to Keystore${DB_CERTS_DIR}/elasticsearch.keystore.jks
ELASTICSEARCH_TRUSTSTORE_LOCATIONPath to Truststore.${DB_CERTS_DIR}/elasticsearch.truststore.jks
ELASTICSEARCH_NODE_CERT_LOCATIONPath to PEM node certificate.${DB_CERTS_DIR}/tls.crt
ELASTICSEARCH_NODE_KEY_LOCATIONPath to PEM node key.${DB_CERTS_DIR}/tls.key
ELASTICSEARCH_CA_CERT_LOCATIONPath to CA certificate.${DB_CERTS_DIR}/ca.crt
ELASTICSEARCH_SKIP_TRANSPORT_TLSSkips transport layer TLS configuration. Useful when deploying single-node clusters.false
ELASTICSEARCH_TRANSPORT_TLS_USE_PEMConfigure transport layer TLS settings using PEM certificates.$DB_TLS_USE_PEM
ELASTICSEARCH_TRANSPORT_TLS_KEYSTORE_PASSWORDPassword for the Elasticsearch transport layer TLS keystore containing the certificates or password-protected PEM key.$DB_KEYSTORE_PASSWORD
ELASTICSEARCH_TRANSPORT_TLS_TRUSTSTORE_PASSWORDPassword for the Elasticsearch transport layer TLS truststore.$DB_TRUSTSTORE_PASSWORD
ELASTICSEARCH_TRANSPORT_TLS_KEY_PASSWORDPassword for the Elasticsearch transport layer TLS node PEM key.$DB_KEY_PASSWORD
ELASTICSEARCH_TRANSPORT_TLS_KEYSTORE_LOCATIONPath to Keystore for transport layer TLS.$DB_KEYSTORE_LOCATION
ELASTICSEARCH_TRANSPORT_TLS_TRUSTSTORE_LOCATIONPath to Truststore for transport layer TLS.$DB_TRUSTSTORE_LOCATION
ELASTICSEARCH_TRANSPORT_TLS_NODE_CERT_LOCATIONPath to PEM node certificate for transport layer TLS.$DB_NODE_CERT_LOCATION
ELASTICSEARCH_TRANSPORT_TLS_NODE_KEY_LOCATIONPath to PEM node key for transport layer TLS.$DB_NODE_KEY_LOCATION
ELASTICSEARCH_TRANSPORT_TLS_CA_CERT_LOCATIONPath to CA certificate for transport layer TLS.$DB_CA_CERT_LOCATION
ELASTICSEARCH_ENABLE_REST_TLSEnable TLS encryption for REST API communications.true
ELASTICSEARCH_HTTP_TLS_USE_PEMConfigure HTTP TLS settings using PEM certificates.$DB_TLS_USE_PEM
ELASTICSEARCH_HTTP_TLS_KEYSTORE_PASSWORDPassword for the Elasticsearch HTTP TLS keystore containing the certificates or password-protected PEM key.$DB_KEYSTORE_PASSWORD
ELASTICSEARCH_HTTP_TLS_TRUSTSTORE_PASSWORDPassword for the Elasticsearch HTTP TLS truststore.$DB_TRUSTSTORE_PASSWORD
ELASTICSEARCH_HTTP_TLS_KEY_PASSWORDPassword for the Elasticsearch HTTP TLS node PEM key.$DB_KEY_PASSWORD
ELASTICSEARCH_HTTP_TLS_KEYSTORE_LOCATIONPath to Keystore for HTTP TLS.$DB_KEYSTORE_LOCATION
ELASTICSEARCH_HTTP_TLS_TRUSTSTORE_LOCATIONPath to Truststore for HTTP TLS.$DB_TRUSTSTORE_LOCATION
ELASTICSEARCH_HTTP_TLS_NODE_CERT_LOCATIONPath to PEM node certificate for HTTP TLS.$DB_NODE_CERT_LOCATION
ELASTICSEARCH_HTTP_TLS_NODE_KEY_LOCATIONPath to PEM node key for HTTP TLS.$DB_NODE_KEY_LOCATION
ELASTICSEARCH_HTTP_TLS_CA_CERT_LOCATIONPath to CA certificate for HTTP TLS.$DB_CA_CERT_LOCATION
ELASTICSEARCH_ENABLE_FIPS_MODEEnables FIPS mode of operationfalse
ELASTICSEARCH_PASSWD_HASH_ALGORITHMPassword hashing algorithmnil
ELASTICSEARCH_KEYSComma-separated list of key=value to be added to the Elasticsearch keystorenil
ES_JAVA_HOMEElasticsearch supported Java installation folder.${JAVA_HOME}
Read-only environment variables
NameDescriptionValue
DB_FLAVORDatabase flavor. Valid values: elasticsearch or opensearch.elasticsearch
ELASTICSEARCH_VOLUME_DIRPersistence base directory/bitnami/elasticsearch
ELASTICSEARCH_BASE_DIRElasticsearch installation directory/opt/bitnami/elasticsearch
ELASTICSEARCH_CONF_DIRElasticsearch configuration directory${DB_BASE_DIR}/config
ELASTICSEARCH_DEFAULT_CONF_DIRElasticsearch default configuration directory${DB_BASE_DIR}/config.default
ELASTICSEARCH_LOGS_DIRElasticsearch logs directory${DB_BASE_DIR}/logs
ELASTICSEARCH_PLUGINS_DIRElasticsearch plugins directory${DB_BASE_DIR}/plugins
ELASTICSEARCH_DEFAULT_PLUGINS_DIRElasticsearch default plugins directory${DB_BASE_DIR}/plugins.default
ELASTICSEARCH_DATA_DIRElasticsearch data directory${DB_VOLUME_DIR}/data
ELASTICSEARCH_TMP_DIRElasticsearch temporary directory${DB_BASE_DIR}/tmp
ELASTICSEARCH_BIN_DIRElasticsearch executables directory${DB_BASE_DIR}/bin
ELASTICSEARCH_MOUNTED_PLUGINS_DIRDirectory where plugins are mounted${DB_VOLUME_DIR}/plugins
ELASTICSEARCH_CONF_FILEPath to Elasticsearch configuration file${DB_CONF_DIR}/elasticsearch.yml
ELASTICSEARCH_LOG_FILEPath to the Elasticsearch log file${DB_LOGS_DIR}/elasticsearch.log
ELASTICSEARCH_PID_FILEPath to the Elasticsearch pid file${DB_TMP_DIR}/elasticsearch.pid
ELASTICSEARCH_INITSCRIPTS_DIRPath to the Elasticsearch container init scripts directory/docker-entrypoint-initdb.d
ELASTICSEARCH_DAEMON_USERElasticsearch system userelasticsearch
ELASTICSEARCH_DAEMON_GROUPElasticsearch system groupelasticsearch

_Note: the README for this container is longer than the DockerHub length limit of 25000, so it has been trimmed. The full README can be found at [***]

查看更多 elasticsearch 相关镜像 →
elasticsearch logo
elasticsearch
官方
Elasticsearch是一款功能强大的开源搜索与分析引擎,它基于Lucene构建,具备分布式、高扩展、实时处理的特性,能够高效存储、检索和分析各类结构化与非结构化数据,广泛应用于日志分析、全文搜索、业务智能等场景,通过简化数据探索流程,帮助用户快速从海量数据中获取有价值的洞察,让复杂数据的分析与利用变得简单高效。
6579500M+ pulls
上次更新:3 天前
bitnamicharts/elasticsearch logo
bitnamicharts/elasticsearch
认证
Bitnami提供的Elasticsearch Helm chart,用于在Kubernetes环境中便捷部署和管理分布式搜索引擎Elasticsearch。
11M+ pulls
上次更新:5 个月前
demisto/elasticsearch logo
demisto/elasticsearch
认证
暂无描述
100K+ pulls
上次更新:10 天前
mcp/elasticsearch logo
mcp/elasticsearch
认证
通过自然语言对话与Elasticsearch索引进行交互
1510K+ pulls
上次更新:6 个月前
rancher/elasticsearch logo
rancher/elasticsearch
认证
暂无描述
110K+ pulls
上次更新:9 年前
corpusops/elasticsearch logo
corpusops/elasticsearch
corpusops/docker-images 是一个包含多个预配置 Docker 镜像的仓库,集成常用工具和环境配置,适用于开发、测试及生产环境的快速部署。
100K+ pulls
上次更新:1 年前

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

HPC 科学计算容器配置

其他仓库配置

ghcr、Quay、nvcr 等镜像仓库

专属域名拉取

无需登录使用专属域名

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

轩辕镜像免费版与专业版有什么区别?

免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。

轩辕镜像支持哪些镜像仓库?

专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。

流量耗尽错误提示

当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
bitnami/elasticsearch
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
提交工单
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.