Build Docker image for Macos using M3 chip on Ubuntu

I built Docker image on Ubuntu 22.04 using the base image ubuntu:22.04, but it does not run on Macos using M3 chip. Is there a way to target multiplatform build or get the Docker Desktop on Mac to run the image built with linux/amd64 option?

You’d need images built for the ARM64 architecture, as an M3 chip is simply not an AMD64 processor

Try arm64v8/ubuntu as the base image

do we need to use buildx for that? and specify the platform as linux/arm64?