DocsAWS 101BlogServices

ECR

Container registry — repositories, images, layer uploads, lifecycle policies, image tag mutability, scanning configuration.

JSON-RPC (X-Amz-Target) multi-tenant 38 operations

Quick start

import boto3
ecr = boto3.client("ecr", endpoint_url="http://localhost:4566",
                   region_name="us-east-1",
                   aws_access_key_id="test", aws_secret_access_key="test")
ecr.create_repository(repositoryName="app")

Supported operations

38 operations exposed by this service as of MiniStack 1.5.44. Extracted directly from the handler dispatch in the source module.

BatchCheckLayerAvailability BatchDeleteImage BatchGetImage CompleteLayerUpload CreatePullThroughCacheRule CreateRepository CreateRepositoryCreationTemplate DeleteLifecyclePolicy DeletePullThroughCacheRule DeleteRegistryPolicy DeleteRepository DeleteRepositoryCreationTemplate DeleteRepositoryPolicy DescribeImages DescribePullThroughCacheRules DescribeRegistry DescribeRepositories DescribeRepositoryCreationTemplates GetAuthorizationToken GetDownloadUrlForLayer GetLifecyclePolicy GetRegistryPolicy GetRepositoryPolicy InitiateLayerUpload ListImages ListTagsForResource PutImage PutImageScanningConfiguration PutImageTagMutability PutLifecyclePolicy PutRegistryPolicy SetRepositoryPolicy TagResource UntagResource UpdatePullThroughCacheRule UpdateRepositoryCreationTemplate UploadLayerPart ValidatePullThroughCacheRule

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::ECR::Repository

See CloudFormation engine for intrinsic support and lifecycle details.

Known limitations

  • Image scanning is not implemented — only PutImageScanningConfiguration stores the scanOnPush flag; there is no StartImageScan / DescribeImageScanFindings.
  • GetAuthorizationToken returns a fixed token; Docker login works against MiniStack but the token has no AWS meaning.
  • An image pushed into a MiniStack repository lives in MiniStack's registry; ECS loads it into the host Docker daemon when a task runs it.

Source

  • ministack/services/ecr.py

Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.