docker-archive / migrator

Tool to migrate Docker images from Docker Hub or v1 registry to a v2 registry
Apache License 2.0
160 stars 82 forks source link

SKIP_EXISTING_TAGS compares incomplete list on ECR #96

Closed madmuffin1 closed 8 years ago

madmuffin1 commented 8 years ago

The current implementation only makes a single query to the v2 repository to get the list of tags. Some implementations (like Amazon's ECR) hard-limits the number of tags it reports to 100, so at most 100 tags will be skipped.

We need to check if the query returns a Link; rel="next" header and loop trough all pages until we have a complete list.

Expect a PR fixing this in a few hours.