简体   繁体   English

在 docker 中安装弹性搜索

[英]install elastic search in docker

I used these two commands in cmd:我在cmd中使用了这两个命令:

docker pull elasticsearch

show error:显示错误:

Using default tag: latest
Error response from daemon: manifest for elasticsearch:latest not found: manifest unknown: manifest unknown

and this command with several different versions:这个命令有几个不同的版本:

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.9.0

show error:显示错误:

Error response from daemon: Get https://docker.elastic.co/v2/elasticsearch/elasticsearch/manifests/7.9.0: Get https://docker-auth.elastic.co/auth?scope=repository%3Aelasticsearch%2Felasticsearch%3Apull&service=token-service: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

how to resolve this problem?如何解决这个问题?
please guide me.请指导我。

Looking at your error message, while pulling the docker image, it seems that your network is blocking you to access the public docker repo to fetch the image.查看您的错误消息,在拉取 docker 镜像时,您的网络似乎阻止您访问公共 docker 存储库以获取镜像。

request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)等待连接时取消请求(等待标头时超出 Client.Timeout)

By any chance are you behind a VPN or firewall or having some restricition on public network/docker registry access?您是否在 VPN 或防火墙后面,或者对公共网络/docker 注册表访问有一些限制?

can other images be pulled?可以拉出其他图像吗? Have you made any modifications to the docker default registry like adding new local registries to this file您是否对 docker 默认注册表进行了任何修改,例如向该文件添加新的本地注册表

/etc/containers/registries.conf /etc/containers/registries.conf

https://www.docker.com/blog/how-to-use-your-own-registry/ https://www.docker.com/blog/how-to-use-your-own-registry/

and also please check with the port rules for port 5000.并请检查端口 5000 的端口规则。

latest version of elastic search does not work out of the box最新版本的弹性搜索无法开箱即用

https://github.com/elastic/elasticsearch-docker/issues/215 https://github.com/elastic/elasticsearch-docker/issues/215

so, use specific version to install所以,使用特定版本来安装

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.11.1
  1. check your firewall, might likely be the culprit.检查您的防火墙,可能是罪魁祸首。
  2. had the same issue running a compose file trying to pull image from image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION} i modified it to image: elasticsearch:${VERSION} and it worked.运行撰写文件时遇到了同样的问题,试图从image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION}提取图像image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION} image: elasticsearch:${VERSION}我将其修改为image: docker.elastic.co/elasticsearch/elasticsearch:${VERSION} image: elasticsearch:${VERSION}并且它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM