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