Skip to content

Don't allow pulling all tags by default for the ImageCreate API endpoint #42053

@adibsaad

Description

@adibsaad

Hi,

I was debugging an issue a while back wherein a program calling the Create Image API endpoint (link) was taking a long time to complete. I realized, after debugging, that when the tag parameter is not specified (which the program wasn't), it pulls all tags.

This is problematic as Docker introduced API limits and people who may not be aware of this behavior may download more than what they probably wanted and will use up their quotas, which is what happened a few times in my case before I realized what was happening.

Since there are cases where people will want to pull all tags (e.g. private registry), I suggest we keep this functionality but make the following changes

  • If a user wants to pull all tags, pass in the wildcard character (*) as the tag parameter
  • If the tag parameter is empty, then only pull the latest tag

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiAPIkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions