Menu
Amazon EC2 Container Service
Developer Guide (API Version 2014-11-13)

ecs-cli push

Description

Pushes an image to an Amazon ECR repository.

Syntax

ecs-cli push [--registry-id registry_id] [--region region] ECR_REPOSITORY[:TAG] [--help]

Options

Name Description

--registry-id registry_id

Specifies the ECR registry ID to which to push the image. By default, images are pushed to the current AWS account.

Required: No

--region, -r region

Specifies the AWS region to use. Defaults to the cluster configured using the configure command.

Type: String

Required: No

--help, -h

Shows the help text for the specified command.

Required: No

Examples

Example 1

This example pushes a local image called ubuntu to an ECR repository with the same name.

Copy
ecs-cli push ubuntu

Output:

INFO[0000] Getting AWS account ID...
INFO[0000] Tagging image                                 repository="aws_account_id.dkr.ecr.us-east-1.amazonaws.com/ubuntu" source-image=ubuntu tag=
INFO[0000] Image tagged
INFO[0001] Creating repository                           repository=ubuntu
INFO[0001] Repository created
INFO[0001] Pushing image                                 repository="aws_account_id.dkr.ecr.us-east-1.amazonaws.com/ubuntu" tag=
INFO[0079] Image pushed