If somebody missed it, apple/container is a good replacement for Docker for Mac on macOS. I have been using it for the last 6 months, there are issues, but also team is actively developing it.
Does that let you build images on a macOS host that works on Windows and Linux too? It doesn't seem to talk about what platform the images support, only where you could run containers.
How is the performance overhead of this compared to docker on MacOS?
I haven't personally used it, but containerd also has "nerdbox": http://github.com/containerd/nerdbox