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

ecs-cli push

Pushes an image to an Amazon ECR repository.


Some features described may only be available with the latest version of the Amazon ECS CLI. For more information about obtaining the latest version, see Installing the Amazon ECS CLI.


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


Name Description

--registry-id registry_id

Specifies the Amazon 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


Example 1

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

ecs-cli push ubuntu


INFO[0000] Getting AWS account ID... INFO[0000] Tagging image repository="" source-image=ubuntu tag= INFO[0000] Image tagged INFO[0001] Creating repository repository=ubuntu INFO[0001] Repository created INFO[0001] Pushing image repository="" tag= INFO[0079] Image pushed

On this page: