2014-01-19 23:42:42 -05:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Docker Push Post-Processor"
|
2014-10-20 16:47:30 -04:00
|
|
|
description: |-
|
|
|
|
The Packer Docker push post-processor takes an artifact from the docker-import post-processor and pushes it to a Docker registry.
|
2014-01-19 23:42:42 -05:00
|
|
|
---
|
|
|
|
|
|
|
|
# Docker Push Post-Processor
|
|
|
|
|
|
|
|
Type: `docker-push`
|
|
|
|
|
2014-10-20 16:47:30 -04:00
|
|
|
The Packer Docker push post-processor takes an artifact from the
|
2014-01-19 23:42:42 -05:00
|
|
|
[docker-import](/docs/post-processors/docker-import.html) post-processor
|
|
|
|
and pushes it to a Docker registry.
|
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2014-09-05 17:43:15 -04:00
|
|
|
This post-processor has only optional configuration:
|
|
|
|
|
|
|
|
* `login` (boolean) - Defaults to false. If true, the post-processor will
|
|
|
|
login prior to pushing.
|
|
|
|
|
|
|
|
* `login_email` (string) - The email to use to authenticate to login.
|
|
|
|
|
|
|
|
* `login_username` (string) - The username to use to authenticate to login.
|
|
|
|
|
|
|
|
* `login_password` (string) - The password to use to authenticate to login.
|
|
|
|
|
|
|
|
* `login_server` (string) - The server address to login to.
|
2014-01-19 23:42:42 -05:00
|
|
|
|
2014-10-20 13:55:16 -04:00
|
|
|
-> **Note:** If you login using the credentials above, the
|
2014-09-05 17:44:34 -04:00
|
|
|
post-processor will automatically log you out afterwards (just the server
|
|
|
|
specified).
|
|
|
|
|
2014-01-19 23:42:42 -05:00
|
|
|
## Example
|
|
|
|
|
|
|
|
For an example of using docker-push, see the section on using
|
|
|
|
generated artifacts from the [docker builder](/docs/builders/docker.html).
|