Even though docker runs natively on Linux, perhaps a similar vm setup can be achieved for security reasons.
I use Podman on Linux which is compatible with docker but without the root issue.