简体   繁体   中英

install elastic search in docker

I used these two commands in 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.

request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

By any chance are you behind a VPN or firewall or having some restricition on public network/docker registry access?

can other images be pulled? Have you made any modifications to the docker default registry like adding new local registries to this file

/etc/containers/registries.conf

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

and also please check with the port rules for port 5000.

latest version of elastic search does not work out of the box

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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