How to get the Docker ARM image for Deno
I keep getting this error when trying to deploy my code:
7 Replies
My docker file
I wasn't able to find the answer to your question in the official Deno documentation. However, based on the error message you've provided, it seems like you're trying to run an AMD64 Docker image on an ARM64 architecture, which is causing the incompatibility issue.
To resolve this, you should ensure that you're pulling the correct Docker image that is built for ARM64. If Deno provides an official ARM64 Docker image, you should use that. When pulling the image from Docker Hub or another registry, you can specify the platform using the
--platform
flag, like so:
Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice and consult the Docker documentation or Deno's official resources for more information on obtaining the correct ARM image for Deno.Deno only got an official arm64 distribution really recently so it's possible the docker image wasn't updated yet
https://github.com/denoland/deno/pull/22298
GitHub
feat: ARM64 builds by mmastrac · Pull Request #22298 · denoland/deno
This implements officially blessed and tested deno binaries for ARM64.
Thanks to @LukeChannings for his tireless work in maintaining the deno-arm64 [1] repo, without which this project would have b...
Though dockerhub doesn't seem to have it yet
Should be available tomorrow
Ah i see, thank you