You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"docker pull library-image:tag" doesn't pull all aliases #8689
This one will require more thought for the V2 design. Since each tag is an independent image individually signed, pulling multiple tags for the current design would involve pulling and verifying multiple manifests. V2 also currently has no "image id" to map to tags except by pulling out the V1 image ids from the manifest history. To implement this in V2 would likely involve a change to the image format to introduce the concept of an "alias", requiring an index on V2 registries would not be an ideal solution.
Many base images currently handle tags as aliases. If using a different "alias" (eg use ubuntu:latest in stead of ubuntu:14.04) produces a different result because images are out of sync, that would really be a step backwards.
Additionally, If image-ids for aliases no longer match, how (as an end-user) can I find out which images are supposed to be an alias?
@dmcgowan Any update on this from the registry side? Wondering if this regression is temporary or should be considered permanent.
Could the signing/aliasing problem be circumvented / make it easier if all aliases would be created at the same time (i.e., allow multiple tags on a push, docker push image:tag1 -t image:tag2 image:tag3) so that the images are pushed (and signed) only once, but replicated/registered under multiple tags ?
I don't want to deviate from the main topic here, but would like to get clear what is required to get this functionality back.
No update, from the registry side we plan no changes to introduce any indexing to alleviate this issue. The change would likely involve an update to the image format and behavior on the daemon to support it. Whether this is desired behavior and will be changed is still up for discussion, and I have no opinion one way or the other.
Thanks for the update, Derek. I realise there's a "conflict" of issues here; security (signing) and more user-centric; being able to update / get those images and keep em in sync.
@bobrik curious what your use case is that requires this feature? Getting the tag list will definitely be faster in v2, just in v2 we have no concept of considering two tags equivalent.
I saw the math, I was confused about is whether you are requesting this feature for v2 (pull all aliases) or mentioning that the existence of this feature in v1 is causing a performance issue. My original question was asking what your use case for needing aliases is. I understand that if pulling the tags is slow that is a problem, and likely should be separated out from this discussion.
I don't need aliases te be in sync. I was trying to say that since in v2 there will be no such feature, it should be disabled in v1 too. That would fix one of my problems.
Sorry for confusion, I just tried to raise awareness to avoid performance issues in the future (and preferably in the present too).
I can create a separate issue to discuss disabling tag fetching in v1 if that could happen.
Activity
dmp42 commentedon Oct 22, 2014
ping @dmcgowan
dmcgowan commentedon Oct 22, 2014
This one will require more thought for the V2 design. Since each tag is an independent image individually signed, pulling multiple tags for the current design would involve pulling and verifying multiple manifests. V2 also currently has no "image id" to map to tags except by pulling out the V1 image ids from the manifest history. To implement this in V2 would likely involve a change to the image format to introduce the concept of an "alias", requiring an index on V2 registries would not be an ideal solution.
dmp42 commentedon Oct 22, 2014
Agreed.
@shykes what do you think?
thaJeztah commentedon Oct 22, 2014
Many base images currently handle tags as aliases. If using a different "alias" (eg use
ubuntu:latestin stead ofubuntu:14.04) produces a different result because images are out of sync, that would really be a step backwards.Additionally, If image-ids for aliases no longer match, how (as an end-user) can I find out which images are supposed to be an alias?
thaJeztah commentedon Nov 5, 2014
@dmcgowan Any update on this from the registry side? Wondering if this regression is temporary or should be considered permanent.
Could the signing/aliasing problem be circumvented / make it easier if all aliases would be created at the same time (i.e., allow multiple tags on a push,
docker push image:tag1 -t image:tag2 image:tag3) so that the images are pushed (and signed) only once, but replicated/registered under multiple tags ?I don't want to deviate from the main topic here, but would like to get clear what is required to get this functionality back.
dmcgowan commentedon Nov 5, 2014
No update, from the registry side we plan no changes to introduce any indexing to alleviate this issue. The change would likely involve an update to the image format and behavior on the daemon to support it. Whether this is desired behavior and will be changed is still up for discussion, and I have no opinion one way or the other.
thaJeztah commentedon Nov 5, 2014
Thanks for the update, Derek. I realise there's a "conflict" of issues here; security (signing) and more user-centric; being able to update / get those images and keep em in sync.
thaJeztah commentedon Jan 18, 2015
Would it be possible to get a status update on this?
If this is a "won't fix" (because of registry V2), I think the feature should be removed entirely.
I'm happy to make a PR to update the docs, add a note to the change-log and can have a look at reverting the changes that implemented this feature.
bobrik commentedon Feb 3, 2015
If we're not having this in v2 then let's make v1 faster too: #8141 (comment)
dmcgowan commentedon Feb 3, 2015
@bobrik curious what your use case is that requires this feature? Getting the tag list will definitely be faster in v2, just in v2 we have no concept of considering two tags equivalent.
bobrik commentedon Feb 3, 2015
@dmcgowan follow the link and read the math behind my use case. I want to use docker in production, but I can't.
dmcgowan commentedon Feb 3, 2015
I saw the math, I was confused about is whether you are requesting this feature for v2 (pull all aliases) or mentioning that the existence of this feature in v1 is causing a performance issue. My original question was asking what your use case for needing aliases is. I understand that if pulling the tags is slow that is a problem, and likely should be separated out from this discussion.
bobrik commentedon Feb 3, 2015
I don't need aliases te be in sync. I was trying to say that since in v2 there will be no such feature, it should be disabled in v1 too. That would fix one of my problems.
Sorry for confusion, I just tried to raise awareness to avoid performance issues in the future (and preferably in the present too).
I can create a separate issue to discuss disabling tag fetching in v1 if that could happen.