If you want something more general purpose, Canonical Multipass has a good sample docker setup. Annoyingly, This is the only Canonical product I can recommend at this point.
I use it with MacOS. I assume WSL is a better choice for Windows laptops, and there’s no reason to add a VM to get docker on Linux.
I liked Multipass until I ran into storage corruption issues like many others [1][2] and broke all my VMs. On MacOS, Multipass uses qemu in which the apple-hvf support isn't getting much updates after 2021 [3].
I use it with MacOS. I assume WSL is a better choice for Windows laptops, and there’s no reason to add a VM to get docker on Linux.
https://multipass.run/docs/docker-how-to