github.com/jbronn/packer@v0.1.6-0.20140120165540-8a1364dbd817/website/source/docs/post-processors/docker-import.html.markdown (about) 1 --- 2 layout: "docs" 3 page_title: "docker-import Post-Processor" 4 --- 5 6 # Docker Import Post-Processor 7 8 Type: `docker-import` 9 10 The Docker import post-processor takes an artifact from the 11 [docker builder](/docs/builders/docker.html) and imports it with Docker 12 locally. This allows you to apply a repository and tag to the image 13 and lets you use the other Docker post-processors such as 14 [docker-push](/docs/post-processors/docker-push.html) to push the image 15 to a registry. 16 17 ## Configuration 18 19 The configuration for this post-processor is extremely simple. At least 20 a repository is required. The tag is optional. 21 22 * `repository` (string) - The repository of the imported image. 23 24 * `tag` (string) - The tag for the imported image. By default this is not 25 set. 26 27 ## Example 28 29 An example is shown below, showing only the post-processor configuration: 30 31 <pre class="prettyprint"> 32 { 33 "type": "docker-import", 34 "repository": "mitchellh/packer", 35 "tag": "0.7" 36 } 37 </pre> 38 39 This example would take the image created by the Docker builder 40 and import it into the local Docker process with a name of `mitchellh/packer:0.7`. 41 42 Following this, you can use the 43 [docker-push](/docs/post-processors/docker-push.html) 44 post-processor to push it to a registry, if you want.