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 "cluster.name=graylog"
2a011103b6b71304ee5f960e5d7165032c08e8684ff6bc51ed001bb38efef728
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: "-e": executable file not found in $PATH".
$ 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 "cluster.name=graylog" 08794661d6b0
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.