Adoptopenjdk 1712/21/2023 ![]() ![]() WARNING: image with reference fauna/faunadb was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64ĭocker: Error response from daemon: image with reference fauna/faunadb was found but does not match the specified platform: wanted linux/arm64, actual: linux/amd64. I then tried to force the platform to arm64 by running docker run with the platform flag set to linux/arm64. Also we know Docker can emulate AMD machines. This isn’t necessarily surprising given we already know an AMD compatible JDK was installed. I shelled into a Docker container running Fauna and ran dpkg -print-architecture on a MacBook Pro with an M1 chip. If dpkg -print-architecture returns 'arm64' then the JDK that supports ARM is downloaded and installed. It looks like there is already support for ARM 64-bit architectures (and has been since 2.6.2). There is a piece of code that is interesting: arch = "$(dpkg -print-architecture)" Įcho > &2 "error: unsupported architecture: '$arch'" So how does the image install the JDK? Looking at the image layers in the latest (at time of writing) FaunaDB Docker image the 9th layer seems to install the JDK. I think the core issue here is the JDK installed isn’t compatible with the ARM architecture. Not only would it be more reliable to dev against but also better perf and battery life to dev against ![]() If ARM dev machines keep growing in popularity (which is where Apple is heading and hopefully PC makers as well), then please consider making a native ARM docker image for fauna. Either way it’s not actually that usable. I think maybe rosetta has some bugs around emulating amd64 docker images or an issue with emulating JVM, not sure. When I tried using the amd64 emulation flag, I had to restart the container many times before it finally launched successfully, and eventually it has more errors and needed to be restarted (see screenshot). I have a Mac with Apple Silicon and the only way to run fauna currently is using the 圆4 docker image and running with the “–platform linux/amd64” flag. ![]() Please release a native ARM docker image of fauna so developers with ARM-based computers can dev against fauna locally, without needing a network connection to the service (and using up quota).Ĭurrently, local development against fauna is unusable on ARM-based dev machines. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |