# \-e doesn't work using logstash image from docker.elastic.co

**URL:** <https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351>\
**Category:** Logstash\
**Created:** [May 27, 2017, 11:34pm UTC](https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351 "2017-05-27T23:34:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinghuang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kinghuang/32/18573_2.png) [@kinghuang](https://discuss.elastic.co/u/kinghuang)\
**Post date:** [May 27, 2017, 11:34pm UTC](https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351/1 "2017-05-27T23:34:29Z")

</div>

I'm trying to switch from the logstash official image on Docker Hub to Elastic's registry, given the Docker Hub images won't be updated past June 20. But, the image provided by Elastic's registry doesn't seem to work properly. The following command produces an error using Elastic's image, as opposed to the image published in Docker Hub.

```
(rmsdev) → ✗ docker run -it --rm docker.elastic.co/logstash/logstash:5.4.0 -e 'input { stdin { } } output { stdout { } }'
ERROR: Unknown command '{'

See: 'bin/logstash --help'

```

Any ideas why?

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [May 28, 2017, 1:16am UTC](https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351/2 "2017-05-28T01:16:20Z")

</div>

It is a known issue. We will fix it soon.

---

<div class="post-metadata">

**Author:** ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)\
**Post date:** [May 28, 2017, 2:37am UTC](https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351/3 "2017-05-28T02:37:45Z")

</div>

Hi!

Thanks for reporting this. It was caused by some sloppy shell scripting (by me) that wasn't handling whitespace correctly.

It's now fixed by [this patch](https://github.com/elastic/logstash-docker/commit/74f123eeb0cc32e33256c9e8ebdd9682a5b4d4f7) and a new image for version `5.4.0` has been pushed.

---

<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:** [June 25, 2017, 2:38am UTC](https://discuss.elastic.co/t/e-doesnt-work-using-logstash-image-from-docker-elastic-co/87351/4 "2017-06-25T02:38:01Z")

</div>

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