1
votes

I am attempting to push a docker image to ECR with a layer that is roughly ~5gb in size (anchore/inline-scan image). The smaller layers are pushed successfully, but the large layer times out when attempting to push, and will continually retry. I am assuming this is because the max layer size of ECR is being exceeded.

How can I upload a large image layer to ECR?

1
try to break down the larger layer into smaller ones. That is the beauty of layering that it facilitates transfer and usability. - Muhammad Hasan

1 Answers

0
votes

Turn your image into many more, smaller layers. The ECR service quotas docs says:

The maximum layer size is 10,000 MiB, calculated by multiplying the maximum layer part size of 10 MiB by the maximum number of layer parts 1,000.