But the Docker engine (that runs containers on the local machine) is only available on Mac and Windows via Docker Desktop which is not free-as-in-beer anymore for all.
This is incorrect. The Docker engine shipped in Docker for Mac is built from the exact same Docker Engine in the open-source release. It’s the native Mac application wrapping the engine in a single-purpose hypervisor that is closed source.