diff --git a/post-processor/vagrant/post-processor.go b/post-processor/vagrant/post-processor.go index 1aab0ca23..c0151220f 100644 --- a/post-processor/vagrant/post-processor.go +++ b/post-processor/vagrant/post-processor.go @@ -31,6 +31,7 @@ var builtins = map[string]string{ "MSOpenTech.hyperv": "hyperv", "transcend.qemu": "libvirt", "ustream.lxc": "lxc", + "packer.docker": "docker", "packer.post-processor.docker-import": "docker", "packer.post-processor.docker-tag": "docker", "packer.post-processor.docker-push": "docker", diff --git a/website/source/docs/post-processors/vagrant.html.md b/website/source/docs/post-processors/vagrant.html.md index 099051a81..3032c2f8b 100644 --- a/website/source/docs/post-processors/vagrant.html.md +++ b/website/source/docs/post-processors/vagrant.html.md @@ -39,6 +39,7 @@ providers. - QEMU - VirtualBox - VMware +- Docker -> **Support for additional providers** is planned. If the Vagrant post-processor doesn't support creating boxes for a provider you care about, @@ -114,6 +115,7 @@ The available provider names are: - `scaleway` - `virtualbox` - `vmware` +- `docker` ## Input Artifacts @@ -124,3 +126,10 @@ it. Please see the [documentation on input artifacts](/docs/templates/post-processors.html#toc_2) for more information. + +### Docker + +Using the Docker builder or one of the Docker post processors as an input +artifact will cause the `Vagrantfile` to include a reference to the image. For +post processors allowing a tag to be specified, such as `docker-import` or +`docker-tag`, the tag will be used. Otherwise, the sha256 hash will be used.