-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] exec format error on arm64 in docker #336
Comments
@cherchyk FYI |
@clarity99
or
|
@cherchyk nope, same error. docker run --platform linux/arm64 -e OPENAI_API_KEY="xxxx" -p 9001:9001 -it --rm kernelmemory/service |
@clarity99 could you try running these 3 images, see if there's any difference?
|
I can see the same error testing in Ubuntu Server 22.04 LTS, using a local VM with UTM on Apple silicon:
Testing AMD64, just in case:
|
Give us additional time to find solution
|
As of today, the error is still occurring. Linux ubuntu 5.15.0-92-generic #102-Ubuntu SMP Wed Jan 10 09:37:39 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux sudo docker run --platform linux/amd64 -e OPENAI_API_KEY="xxx" -p 9001:9001 -it --rm kernelmemory/service sudo docker run --platform linux/arm64 -e OPENAI_API_KEY="xxx" -p 9001:9001 -it --rm kernelmemory/service |
I recently reviewed the Dockerfile with support from the Docker team, and looks like there's some error in the use of build platform and target platform. The error can be reproduced running a Linux VM inside an ARM-based macbook. |
Context / Scenario
I tried to run km from docker
What happened?
docker run -e OPENAI_API_KEY="xxxx" -p 9001:9001 -it --rm kernelmemory/service
got error:
exec /usr/bin/dotnet: exec format error
this is on hetzner arm cloud servers.
docker inspect cd3068ce3833 of the image does contain: "Architecture": "arm64",
but it seems the actual binary is not correct?
Importance
I cannot use Kernel Memory
Platform, Language, Versions
ubuntu 22.04 on arm64, image hash cd3068ce3833, hetzner cloud arm server
Relevant log output
The text was updated successfully, but these errors were encountered: