Cant pass the name of my cluster using docker

Hello guys,

I'm new with elastic and i'm trying to bring up an environment using Elastic and Docker to set up a Graylog Server, but when i try to pass the name of my cluster i got stuck:

[root@notebook docker]# docker run -d --name=elastic 08794661d6b0 -e ""
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: "-e": executable file not found in $PATH".

(The image 08794661d6b0 is 5.4.0)

Any help it will be appreciate!


$ docker run --help

Usage:	docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

The option needs to be passed before the image. In your example it assumes -e is the command. Try docker run -d --name=elastic -e "" 08794661d6b0 :slight_smile:


It was my bad, i'm still learning, thanks again!

Hello again guys,

I'm run another container:

[root@notebook docker]# docker run -it --name=elastic -e "" 08794661d6b0 /bin/bash

and i went to check the elasticsearch.yml and i got this:

**[elasticsearch@e5710541152b config]$ cat elasticsearch.yml ** "docker-cluster"

Is it normal? What am i doing wrong??

Thanks again!

Yeah, that's the default setting from

But with your environment variable you are correctly overriding it — mentioned in the docs as well:

Check the cluster name with curl against localhost:9200/

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