what you have to consider is, that docker does not emulate hardware and does not run a complete OS inside. that said you can definitly do something in that direction with virtualbox:
create an .ova file as a template for your sandbox.
to "spin up" your sandbox you have to import that image, add a shared folder and start it headless:
vboxmanage import yourtemplate.ova --vsys 0 --vmname yourvmname
vboxmanage sharefolder add "yourvmname" - name "SF name" -hostpath "x:\path"
vboxmanage startvm yourvmname --type headless
or something like that. You can find most of that stuff in Chapter 8 of the VirtualBox docs: https://www.virtualbox.org/manual/ch08.html