0

I want to set up a Local Development Environment with Docker but I have no experience with Docker.
I ran ./bin/magento-docker ece-deployand get the error: ERROR: [132] Can't get version of elasticsearch: cURL error 6: Could not resolve host: elasticsearch.
Can anyone help me please with this issue?
This a part of my docker-compose.yml:

elasticsearch:
    hostname: elasticsearch.magento2.docker
    image: 'magento/magento-cloud-docker-elasticsearch:7.7-1.2.3'
    ulimits:
      memlock:
        soft: -1
        hard: -1
    environment:
      - cluster.name=docker-cluster,
      - bootstrap.memory_lock=true
    networks:
      magento:
        aliases:
          - elasticsearch.magento2.docker

Thank you!

0

The problem was that the ElasticSearch container kept exiting during the deployment. This was solved by giving more memory to docker.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.