github.com/yoctocloud/packer@v0.6.2-0.20160520224004-e11a0a18423f/website/source/docs/post-processors/docker-push.html.md (about) 1 --- 2 description: | 3 The Packer Docker push post-processor takes an artifact from the docker-import 4 post-processor and pushes it to a Docker registry. 5 layout: docs 6 page_title: 'Docker Push Post-Processor' 7 ... 8 9 # Docker Push Post-Processor 10 11 Type: `docker-push` 12 13 The Packer Docker push post-processor takes an artifact from the 14 [docker-import](/docs/post-processors/docker-import.html) post-processor and 15 pushes it to a Docker registry. 16 17 ## Configuration 18 19 This post-processor has only optional configuration: 20 21 - `login` (boolean) - Defaults to false. If true, the post-processor will 22 login prior to pushing. 23 24 - `login_email` (string) - The email to use to authenticate to login. 25 26 - `login_username` (string) - The username to use to authenticate to login. 27 28 - `login_password` (string) - The password to use to authenticate to login. 29 30 - `login_server` (string) - The server address to login to. 31 32 Note: When using _Docker Hub_ or _Quay_ registry servers, `login` must to be 33 set to `true` and `login_email`, `login_username`, **and** `login_password` 34 must to be set to your registry credentials. When using Docker Hub, 35 `login_server` can be omitted. 36 37 -> **Note:** If you login using the credentials above, the post-processor 38 will automatically log you out afterwards (just the server specified). 39 40 ## Example 41 42 For an example of using docker-push, see the section on using generated 43 artifacts from the [docker builder](/docs/builders/docker.html).