not docker, but the linux virtual machine that docker on mac has to use because mac os has no other way to run containers (which would mean running linux binaries anyway).
on linux you would have pretty much no overhead from running software in containers.