Absolutely! Let’s create a complete step-by-step workflow to build and run a minimal C kernel with a Multiboot header inside a Docker container on your M1 Mac, and then boot it in QEMU. I’ll assume your container is x86_64 (--platform linux/amd64) Ubuntu.
docker run --platform linux/amd64 -it --name os-builder -v ~/osdev:/root/osdev ubuntu:26.04 bash