monocle
monocle copied to clipboard
ARM compatible image
Users relying on new Mac books are unable to run the Monocle compose. Indeed the Monocle container image is only compatible with x86_64 / amd64 architecture.
This issue is the place to discuss solutions such as:
- Produce an ARM compatible image
- Document a workaround
It seems that a workaround solution could be to set export DOCKER_DEFAULT_PLATFORM=linux/amd64 to add a layer of emulation for Docker.
this didn't work for me
Unfortunately I don't have such platform to test it. Perhaps you could share the error you get ?
The other solution might be the full virtualization where you could start a compatible system then start Monocle.
No specific logs on the errors.
Message I get during the launch:
[+] Running 4/6
⠿ Network monocle_default Created 0.1s
⠿ Container monocle-elastic-1 Started 1.0s
⠿ Container monocle-api-1 Started 1.2s
⠸ api The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
⠿ Container monocle-crawler-1 Started 2.3s
⠹ crawler The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s
And in the logs:
monocle-api-1 exited with code 137
monocle-crawler-1 exited with code 0
monocle-api-1 exited with code 0
monocle-crawler-1 exited with code 0
monocle-api-1 exited with code 0
monocle-crawler-1 exited with code 0
monocle-api-1 exited with code 137
monocle-crawler-1 exited with code 137
Same issue here so a +1 from me.
M1 Mac user
I'm going to try and work on alternatives, maybe just host in AWS as the product looks like what I need.
same results and no logs to speak of.
I succeeded to make it work by
- adding more RAM (from 8 to 16gb to docker). The error with code 137 seems to not be present anymore (137 was a OOM error).
- adding
ingest.geoip.downloader.enabled: falsetoelastic/environmententry in thedocker-composefile.
@charlesdg can you post your setup in PR or something?
Found a solution by running Docker Desktop with Rosetta enabled (had the first idea from ChatGPT).
It's under Beta features in the latest docker desktop version as of today, but it seems to work.
+1 to using Rosetta in Docker Desktop — this unblocked me
I managed to run Monocle on M1 Mac using the tips above:
- Install Rosetta ->
softwareupdate --install-rosetta - Increase memory in Docker Desktop (v4.22.1) to 16GB
export DOCKER_DEFAULT_PLATFORM=linux/amd64
Where would I set export DOCKER_DEFAULT_PLATFORM=linux/amd64?
@MisterJimson you can run it in your terminal session before starting monocle (docker-compose up -d)