Hi there!
I'm working on a client project where their app uses the docker image for elasticsearch 2.3.3.
My issue is that I'm currently unable to build the client's containers. When I run their setup script, or if I try to run docker build .
from the directory they have their elasticsearch Dockerfile, I get the following:
[+] Building 1.2s (6/11) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 513B 0.0s
=> [internal] load metadata for docker.io/library/elasticsearch:2.3.3 1.1s
=> [auth] library/elasticsearch:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> ERROR [1/6] FROM docker.io/library/elasticsearch:2.3.3@sha256:59a7522cad52e6e323aedf62d638ee8d4f0391dd645d48f68579c875cc791ebe 0.0s
=> => resolve docker.io/library/elasticsearch:2.3.3@sha256:59a7522cad52e6e323aedf62d638ee8d4f0391dd645d48f68579c875cc791ebe 0.0s
=> CANCELED [internal] load build context 0.0s
=> => transferring context: 670B 0.0s
------
> [1/6] FROM docker.io/library/elasticsearch:2.3.3@sha256:59a7522cad52e6e323aedf62d638ee8d4f0391dd645d48f68579c875cc791ebe:
------
Dockerfile:1
--------------------
1 | >>> FROM elasticsearch:2.3.3
2 |
3 | RUN bin/plugin install https://repo1.maven.org/maven2/org/elasticsearch/plugin/analysis-phonetic/2.3.3/analysis-phonetic-2.3.3.zip
--------------------
ERROR: failed to solve: failed to load cache key: "" failed validation: invalid argument
I've tried googling this issue but wasn't able to find any hinst as to what the issue was. The 2.3.3 image is on dockerhub. I did notice the sha in dockerhub was different from the one docker attempts to pull down, but even specifying the right sha yields a similar message.
I'm currently suspecting that it's because of my CPU architecture (Mac M2) but other colleagues of mine didn't have this issue and they also use apple silicon.
At any rate, any ideas as to what this error message means?