Never looked into this. I would expect the majority of images would fail in this configuration. Or am I unduly pessimistic?
Unfortunately, there is no way to specify those `emptyDir` volumes as `noexec` [1].
I think the docker equivalent is `--tmpfs` for the `emptyDir` volumes.
Having such a nice layered buildsystem with mountpoints, I'm amazed Docker made readonly an afterthought.