All you need to do is specifying where this image can find the Elastic Search REST api by setting the ELASTIC_SEARCH_URL environment variable. Default is http://elasticsearch:9200 so the easiest thing to do is linking it
$ docker run --rm --link elasticsearch:elasticsearch mwldk/shakespeare-import
Content type
Image
Digest
sha256:19c8ed7e2…
Size
79.6 MB
Last updated
almost 11 years ago
docker pull mwldk/shakespeare-import