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
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
*) as the tag parameterlatesttagThank you