I'm trying to use an elasticsearch docker image in a test, using the testcontainers library to manage spinning it up. When using the "5.6.4" image from "docker.elastic.co/elasticsearch/elasticsearch", it correctly reponds to env config being passed in for cluster name, http and transport ports, and xpack settings. However, when I use the same image from "registry.hub.docker.com/library/elasticsearch" these configuration options seem to have no effect.
My reasons for using "registry.hub.docker.com/library/elasticsearch" is that it also has an image for 1.7.1 available, and I'm currently dealing with an environment that must support both versions concurrently (in different clusters) while applications are migrated.
Are the images from these two sources not the same? Or am I simply doing something wrong? I am open to trying other versions to track down this issue, and will shortly attempt setting the environmental variables manually through docker command line to see if that works.
Thanks in advance for any help.