
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Maintained by: https://github.com/opensearch-project
Need help? Ask questions and discuss on our https://forum.opensearch.org/.
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 https://www.apache.org/licenses/LICENSE-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 https://aws.amazon.com/amazon-linux-2/ as the base image for 1.x versions and 2.x versions up until 2.9.0, and https://aws.amazon.com/linux/amazon-linux-2023/ since 2.10.0. If you are using https://www.docker.com/products/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 https://docs.docker.com/compose/. If you use https://www.docker.com/products/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 https://www.apache.org/licenses/LICENSE-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 https://opensearch.org/ to learn more.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 opensearchproject/opensearch 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: