Hi,
I have an issue with dockerized Elasticsearch.
I get next error:
# SocketError:
# getaddrinfo: Name or service not known
Here is my dockerfile:
version: '2'
volumes:
bundle:
services:
app:
image: xxx
volumes:
- .:/app
- bundle:/bundle
command: bundle exec rspec
links:
- elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.4.1
environment:
- xpack.security.enabled=false
ports:
- 9200
Before this, I used the 2.3 image from docker hub and it worked. I suppose that it happens because image start takes too much time.
So the issue is how can I check that Elasticsearch is ready?