Is it at all possible to run the Elasticsearch 9.x docker containers on a machine with a CPU which doesn’t support x86-64-v2? The 8.x releases all ran fine on the machine but the new ones don’t start up as they just report that “Fatal glibc error: CPU does not support x86-64-v2”. My guess is that this is due to the change from using Ubuntu to RedHat as the base image for building the Elasticsearch containers.
Has anyone built a 9.x docker image that will work without x86-64-v2 support? Are there instructions anywhere for building custom docker containers with elasticsearch in them that might work?
Thanks in advance for any pointers,
Mark
To answer my own question….
If you take the Dockerfile (and other scripts) for building v8.19 from here dockerfiles/elasticsearch at 8.19 · elastic/dockerfiles · GitHub and simply alter the version number in the curl command that downloads the Elasticsearch release to point to a 9.x release (I used 9.3.0) then the image will build and run successfully.
As far as I can see while the Dockerfiles for 8.x and 9.x differ substantially this is only due to the different package systems used by the different base images. When you strip all that away the actual setup is pretty much identical which is why this seems to work.
I’ve not had a need to try this with the 9.x releases of Kibana or Logstash but I would imagine that these would work similarly if required.
For now at least I have an up to date Elasticsearch node running without issues, so hopefully this is useful to anyone else who trips over the same problem,
Mark
1 Like