Can’t run traccar image on MacBook Pro M1 2020

Lado4 years ago
Anton Tananaev4 years ago

Probably because of this:

platform: linux/x86_64
Lado4 years ago

If I don’t add the platform here is the error I have :
"The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"

Anton Tananaev4 years ago

What if you add the correct platform that your CPU can handle?

Lado4 years ago

The platform linux/x86_64 seems to be the right one, see link above :
https://stackoverflow.com/questions/65456814/docker-apple-silicon-m1-preview-mysql-no-matching-manifest-for-linux-arm64-v8

Docker configuration link for Apple Silicon:
https://docs.docker.com/desktop/mac/apple-silicon/

If I don’t put on the platform I don’t see the server logs.

Anton Tananaev4 years ago

I guess I'm not an expert in Docker, but seems wrong to request x86 platform when you need ARM. Does it do emulation or it somehow automatically picks the right architecture?

Lado4 years ago

Yes there is Rosetta allowing to do the emulation :
https://support.apple.com/en-us/HT211861

I tried the amd64 and x86 platform and both create the container but there no log on traccar server.

Lado4 years ago
  • I can’t access to the interface