# Issue with docker

**URL:** <https://discuss.elastic.co/t/issue-with-docker/89383>\
**Category:** Elasticsearch\
**Created:** [June 14, 2017, 1:30pm UTC](https://discuss.elastic.co/t/issue-with-docker/89383 "2017-06-14T13:30:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tonkonozhenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tonkonozhenko/32/19117_2.png) [@Tonkonozhenko](https://discuss.elastic.co/u/Tonkonozhenko)\
**Post date:** [June 14, 2017, 1:30pm UTC](https://discuss.elastic.co/t/issue-with-docker/89383/1 "2017-06-14T13:30:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2017, 1:30pm UTC](https://discuss.elastic.co/t/issue-with-docker/89383/2 "2017-07-12T13:30:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
