Search code examples
dockerelasticsearch

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.


Solution

  • 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?