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

ecs-cli pull

Description

Pull an image from an Amazon ECR repository.

Syntax

ecs-cli pull [--registry-id registry_id] [--region region] ECR_REPOSITORY[:TAG|@DIGEST] [--help]

Options

Name Description

--registry-id registry_id

Specifies the ECR registry ID from which to pull the image. By default, images are pulled from 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 pulls a local image called amazonlinux from an ECR repository with the same name.

Copy
ecs-cli pull amazonlinux

Output:

INFO[0000] Getting AWS account ID...
INFO[0000] Pulling image                                 repository="aws_account_id.dkr.ecr.us-east-1.amazonaws.com/amazonlinux" tag=
INFO[0129] Image pulled