scan-and-scroll doesn't work from Docker with a ElasticSearch cluster placed outside

Currently I use Docker with an ElasticSearch cluster, which is placed outside the container.
From my docker I manage to create a mapping (so my ip it’s good), and I manage to launch simple request in python language.

def getBodyOfRoot(self, id):
        res = self.es.get(index=self.ES_Index, doc_type=self.ES_Type, id=id)
        return res['_source']

this example works well in my host AND in Docker.

  • Dealing with the issue of embedded tomcat's port numbers when scaling the web container in a Heroku-like cloud
  • Docker rm does not remove my container if the physical machine dies
  • I can't access mounted volume of docker-postgres from host
  • numpy.distutils missing from numpy installation, theano tries to use it
  • VisualVM unable to connect remote tomcat in docker with RMI
  • What's the difference between Docker and Rocket from CoreOS?
  • But when I launch my scan-and-scroll from Docker, I don’t get a response, but from my native OS, I get a response.

    If you have already met this problem, how did you manage to solve it ?

    Thanks in advance.

  • Docker apps logging with Filebeat and Logstash
  • How do I make a Docker container start automatically on system boot?
  • Mesos Slave Failed to create a containerizer
  • Bluemix Container shutdown issue
  • fio: blocksize too large for data set
  • How can I install docker on Debian 8 kernel 2.6.32
  • One Solution collect form web for “scan-and-scroll doesn't work from Docker with a ElasticSearch cluster placed outside”

    Try to issue the scan and scroll from your Docker container using cURL:

    curl -XGET http://elastic-search-host:9200/my_index/_search?scroll=1m&search_type=scan&size=10 -d '
    {
        "query": {
            "match" : {
                "title" : "elasticsearch"
            }
        }
    }
    '
    
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.