How to create ARM based images using Buildx

This is a short post on how to create container images with docker and buildx so that it’s compatible with ARM architectures such as the Apple M1 and Raspberry Pi 64 bit. Dockerfile We will have a simple dockerfile that runs from a alpine image and we will be installing curl: FROM alpine:latest LABEL maintainer "Ruan Bekker" RUN apk --no-cache add curl Buildx List your current builder instances: $ docker buildx ls NAME/NODE DRIVER/ENDPOINT STATUS PLATFORMS default docker default running linux/amd64, linux/386 As you can see we only have amd64 and i386 architecture support for when we build container images....

October 13, 2022 Â· 2 min Â· Ruan Bekker