Firstly build the docker image. This might take a while at the first time.
cd ~/my-kernel/buildenv && docker build -t my-kernel-env .
Now run the container.
cd ~/my-kernel/buildenv && docker run --rm -it -v ~/my-kernel:/root/env my-kernel-env bash
In the container run the build command.
make build
And that's it now you should have both the kernel.iso
and the kernel.bin
files.
In your shell: (Outside the container)
qemu-system-x86_64 -cdrom dist/x86_64/kernel.iso