Maintained by: https://github.com/opensearch-project
Need help? Ask questions and discuss on our community forum.
Need to an file issue? Use our https://github.com/opensearch-project/opensearch-build/issues to report problems with builds or Docker images.
OpenSearch is a scalable, flexible, and extensible open-source software suite for search, analytics, and observability applications derived from Elasticsearch 7.10.2 and Kibana 7.10.2 and licensed under Apache 2.0. It consists of a search engine daemon (OpenSearch) and a user interface for data administration and visualizations (OpenSearch Dashboards).
You can pull the OpenSearch Docker image just like any other image.
bashdocker pull opensearchproject/opensearch:latest
See https://hub.docker.com/r/opensearchproject/opensearch/tags for a list of all available versions.
Note: OpenSearch images use Amazon Linux 2 as the base image for 1.x versions and 2.x versions up until 2.9.0, and Amazon Linux 2023 since 2.10.0. If you are using Docker Desktop, then we recommend configuring Docker to use a minimum of 4 GB of your system memory.
Run a single node for local development.
bashdocker run -it -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" --name opensearch-node -d opensearchproject/opensearch:latest
Note: For OpenSearch 2.12 and later, a custom password for the admin user is required to be passed to set-up and utilize demo configuration.
bashdocker run -it -p 9200:9200 -p 9600:9600 -e OPENSEARCH_INITIAL_ADMIN_PASSWORD=<strong-password> -e "discovery.type=single-node" --name opensearch-node opensearchproject/opensearch:latest
Send requests to the OpenSearch REST API to verify that OpenSearch is working. By default, OpenSearch uses self-signed TLS certificates. The -k short option skips the certificate verification step so requests don't fail. The default username is admin and the password will be admin for OpenSearch 2.12 and earlier. For OpenSearch 2.12 and later, the password will be the custom value, which is required to be provided during the demo configuration setup for security plugin.
bashcurl -X GET "https://localhost:9200" -ku admin:<password> curl -X GET "https://localhost:9200/_cat/nodes?v" -ku admin:<password> curl -X GET "https://localhost:9200/_cat/plugins?v" -ku admin:<password>
You can stop, start, and restart your container by passing either the container ID or the container name as an argument. For example, to stop the container use the following command.
bashdocker stop opensearch-node
Get started with an OpenSearch cluster by using Docker Compose. If you use Docker Desktop then Docker Compose is already installed on your machine and you will use the command docker compose. Otherwise, you will need to manually install Docker Compose.
If Python is installed in your environment, then you can use a utility such as pip, the package installer for Python, to install Docker Compose.
bashpip install docker-compose
After the installation is complete, define a cluster in a Compose file. The OpenSearch Project provides sample https://github.com/opensearch-project/opensearch-build/tree/main/docker/release/dockercomposefiles you can use. Once you've created the file, use Docker Compose to build and manage your cluster.
Navigate to the directory where you saved docker-compose.yml and start your cluster. Use the -d option to run the containers in the background.
bashdocker-compose up -d
Stop the cluster with the following command.
bashdocker-compose down
If you also with to delete the associated data volumes, use the -v option.
bashdocker-compose down -v
OpenSearch and its included plugins are licensed under Apache License, Version 2.0.
OpenSearch is, and will remain, 100% open-source under the Apache 2.0 license. As the project grows, we hope you will join us and contribute.
We want to make it easy for your to get started and remove friction - no lengthy contributor license agreement - so you can focus on writing great code.
Check out OpenSearch to learn more.
以下是 opensearchproject/opensearch 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务