Closed xrisk closed 5 months ago
It would be great, but I never managed to find the right commands to do so. I either end up with an image that works for x86_64, or an image that works on aarch64, but never both.
My build command is simply:
docker buildx build --load --platform linux/amd64 -t jedisct1/dnscrypt-server:latest .
And to run the containers, I'm using colima
on an M1 Mac.
If you know the magic recipe, please share it and I'd be glad to publish images that also work on aarch64!
These worked for me:
docker buildx create --name multi --bootstrap --use --platform linux/amd64,linux/arm64
docker buildx build --platform linux/amd64,linux/arm64 -t xrisk/dnscrypt-server-docker --push .
Caveat: Colima seems to be very flakey when compiling for amd64. I had better success with Docker Desktop.
Thank you!
A new image was uploaded :)
@jedisct1 your docker image name is jedisct1/dnscrypt-server
(as mentioned in the docs) but you’ve uploaded to jedisct1/dnscrypt-server-docker
, probably because I used that image name in my command. Sorry about that!
Yikes.
It would be great to have an official arm64 build. Doing a regular docker build seems to work fine for building the image on arm64, so it shouldn’t be a lot of effort.