libsql icon indicating copy to clipboard operation
libsql copied to clipboard

linux/arm64 docker image not available?

Open LGmatrix13 opened this issue 1 year ago • 4 comments

I've been using the libsql docker image and it seems like arm64 isn't recognized as a valid platform in my Docker file, where I have:

FROM --platform=linux/arm64  ghcr.io/tursodatabase/libsql-server:latest

Docker responds with the error:

image

I've noticed arm64 is specified as a platform in the libsql github publish workflow. But, docker is telling it is not a valid platform the image supports... Is there any reason why this might be the case?

LGmatrix13 avatar Jan 15 '24 01:01 LGmatrix13

@QuiiBz is the arm64 Docker image working for you after the merge?

penberg avatar Jan 16 '24 10:01 penberg

I didn't try it because I found out about turso dev which simplifies my workflow.

Looks like it's tagged as unknown/unknown instead of linux/arm64: Screenshot 2024-01-16 at 15 05 38

QuiiBz avatar Jan 16 '24 14:01 QuiiBz

@penberg looks like specifying unknown/unknown as a platform works as a "valid platform", but it results in an invalid tar header once it starts building:

image

LGmatrix13 avatar Jan 16 '24 21:01 LGmatrix13

I have run into this as well, it's possible this is because you are using an apple M1/M2 family chip. I found this blog post that helped resolve the issues until there is an image for this platform: https://devcoops.com/no-matching-manifest-for-linux-arm64-v8/

TLDR;

docker run -p 8080:8080 --platform=linux/amd64 ghcr.io/tursodatabase/libsql-server:latest

SpencerDuball avatar Feb 01 '24 00:02 SpencerDuball