Blob mounting in Amazon ECR
Amazon ECR supports a capability called blob mounting to share common image layers across repositories within a registry. When enabled, repositories within a single registry can reference layers from other repositories within the same registry instead of storing duplicate copies.
When registry blob mounting is enabled, Amazon ECR checks for existing layers in your registry during push operations when mounting parameters are included. If a layer already exists in another repository within the same registry, Amazon ECR will mount the existing layer instead of uploading a duplicate.
Note
OCI clients automatically include mounting parameters if they detect a blob may already exist in a different repository. Amazon ECR attempts mounting only when these parameters are present in the client's POST request.
Blob mounting concepts
-
Blob mounting only works within the same registry (same account and region).
-
Repositories must use identical encryption configurations.
Blob mounting configuration
You can use the AWS Management Console or AWS CLI to configure blob mounting for your registry.