github.com/ratanraj/packer@v1.3.2/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-Processors'
     7  sidebar_current: 'docs-post-processors-docker-push'
     8  ---
     9  
    10  # Docker Push Post-Processor
    11  
    12  Type: `docker-push`
    13  
    14  The Packer Docker push post-processor takes an artifact from the
    15  [docker-import](/docs/post-processors/docker-import.html) post-processor and
    16  pushes it to a Docker registry.
    17  
    18  ## Configuration
    19  
    20  This post-processor has only optional configuration:
    21  
    22  -   `aws_access_key` (string) - The AWS access key used to communicate with AWS.
    23      [Learn how to set this.](/docs/builders/amazon.html#specifying-amazon-credentials)
    24  
    25  -   `aws_secret_key` (string) - The AWS secret key used to communicate with AWS.
    26      [Learn how to set this.](/docs/builders/amazon.html#specifying-amazon-credentials)
    27  
    28  -   `aws_token` (string) - The AWS access token to use. This is different from the
    29      access key and secret key. If you're not sure what this is, then you
    30      probably don't need it. This will also be read from the `AWS_SESSION_TOKEN`
    31      environmental variable.
    32  
    33  -   `aws_profile` (string) - The AWS shared credentials profile used to communicate with AWS.
    34      [Learn how to set this.](/docs/builders/amazon.html#specifying-amazon-credentials)
    35  
    36  -   `ecr_login` (boolean) - Defaults to false. If true, the post-processor
    37      will login in order to push the image to
    38      [Amazon EC2 Container Registry (ECR)](https://aws.amazon.com/ecr/).
    39      The post-processor only logs in for the duration of the push. If true
    40      `login_server` is required and `login`, `login_username`, and
    41      `login_password` will be ignored.
    42  
    43  -   `login` (boolean) - Defaults to false. If true, the post-processor will
    44      login prior to pushing. For log into ECR see `ecr_login`.
    45  
    46  -   `login_username` (string) - The username to use to authenticate to login.
    47  
    48  -   `login_password` (string) - The password to use to authenticate to login.
    49  
    50  -   `login_server` (string) - The server address to login to.
    51  
    52  -> **Note:** When using *Docker Hub* or *Quay* registry servers, `login` must to be
    53  set to `true` and `login_username`, **and** `login_password`
    54  must to be set to your registry credentials. When using Docker Hub,
    55  `login_server` can be omitted.
    56  
    57  -> **Note:** If you login using the credentials above, the post-processor
    58  will automatically log you out afterwards (just the server specified).
    59  
    60  ## Example
    61  
    62  For an example of using docker-push, see the section on using generated
    63  artifacts from the [docker builder](/docs/builders/docker.html).