That depends on the runtime though. For example, libkrun lets you do this:
docker run --runtime krun hello-world