-
Put the dockerfile that you want to use in a directory next to your vagrantfile.
-
In the vagrantfile put the following:
config.vm.provision "docker" do |d|
d.build_image "/vagrant", args: "-t my-name/my-new-image"
d.run "my-name/my-new-image"
end