github.com/rahart/packer@v0.12.2-0.20161229105310-282bb6ad370f/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 - `aws_access_key` (string) - The AWS access key used to communicate with AWS. 22 [Learn how to set this.](/docs/builders/amazon.html#specifying-amazon-credentials) 23 24 - `aws_secret_key` (string) - The AWS secret key used to communicate with AWS. 25 [Learn how to set this.](/docs/builders/amazon.html#specifying-amazon-credentials) 26 27 - `aws_token` (string) - The AWS access token to use. This is different from the 28 access key and secret key. If you're not sure what this is, then you 29 probably don't need it. This will also be read from the `AWS_SESSION_TOKEN` 30 environmental variable. 31 32 - `ecr_login` (boolean) - Defaults to false. If true, the post-processor 33 will login in order to push the image to 34 [Amazon EC2 Container Registry (ECR)](https://aws.amazon.com/ecr/). 35 The post-processor only logs in for the duration of the push. If true 36 `login_server` is required and `login`, `login_username`, and 37 `login_password` will be ignored. 38 39 - `login` (boolean) - Defaults to false. If true, the post-processor will 40 login prior to pushing. For log into ECR see `ecr_login`. 41 42 - `login_email` (string) - The email to use to authenticate to login. 43 44 - `login_username` (string) - The username to use to authenticate to login. 45 46 - `login_password` (string) - The password to use to authenticate to login. 47 48 - `login_server` (string) - The server address to login to. 49 50 Note: When using _Docker Hub_ or _Quay_ registry servers, `login` must to be 51 set to `true` and `login_email`, `login_username`, **and** `login_password` 52 must to be set to your registry credentials. When using Docker Hub, 53 `login_server` can be omitted. 54 55 -> **Note:** If you login using the credentials above, the post-processor 56 will automatically log you out afterwards (just the server specified). 57 58 ## Example 59 60 For an example of using docker-push, see the section on using generated 61 artifacts from the [docker builder](/docs/builders/docker.html).