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