Both Vagrant and Docker support sharing host directories with their managed environments, obtaining base artifacts from registries or catalogs, and creating customized environments from a base artifact. Vagrant uses boxes and provisioning for virtual-machine environments; Docker uses images and build instructions for containers. Vagrant therefore does not default to containers, and Docker does not default to virtual machines.
Community Discussion