Probably because of this:
platform: linux/x86_64
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"
What if you add the correct platform that your CPU can handle?
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.
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?
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.
Link gist to follow:
https://gist.github.com/LadoSow/9f7bc4e3b3514e9743101bed58c86340#file-dockercompose-yaml