dockhippie / elasticsearch

Docker images for elasticsearch
MIT License
10 stars 7 forks source link

What is the default username/password for the 6.8 image? #43

Closed shahid21st closed 1 year ago

shahid21st commented 1 year ago

Hi, I'm trying to run the webhippie/elasticsearch:6.8 docker image. However, I couldn't be able to authenticate to the cluster. I tried the common combinations like elastic:changeme but it didn't work. Later I tried to reset the passwords by:

/usr/share/elasticsearch # ./bin/elasticsearch-setup-passwords interactive
warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
./bin/elasticsearch-env: line 79: cd: /usr/share/elasticsearch/config: No such file or directory
ERROR: Elasticsearch keystore file is missing [/usr/share/elasticsearch/elasticsearch.keystore]
/usr/share/elasticsearch #

But that didn't work either. Any idea what I need to do differently?

shahid21st commented 1 year ago

Got the mistake - the command elasticsearch-setup-passwords needed to be run from the ELASTICSEARCH_CONFIG_DIR

shahid21st commented 1 year ago

@tboerger even if it worked, the problem is next time when I start the container it didn't work:

[1]: Transport SSL must be enabled if security is enabled on a [basic] license. Please set [xpack.security.transport.ssl.enabled] to [true] or disable security by setting [xpack.security.enabled] to [false]

Wondering do you know a way to either:

  1. To start it without xpack.security.enabled=false - the container failed to start with the above error if I use this.
  2. Use .elasticsearch-setup-passwords interactive but be able to restart the container without the above error message.
tboerger commented 1 year ago

I haven't used xpack within the container so far.