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
In Flynn artifacts (such as container images) are completely immutable. This means that we need a way to consistently pull the exact same image every time. The solution is to allow images to be referenced by ID directly (I don't care if the name is required).
@creack mentioned in IRC that this feature might have been removed at some point.
Reacted by Markus Padourek, soyking, Michael and Valentin Lab
I can relate to this. We ended up implementing a system where we automatically tag images with it's id. Of course it is only a convection, not a guarantee because nobody is stopping you to reuse the tag... Which leads me to another point: the term 'tag' is misleading, as it behaves more like a branch head, rather than tag...
It was removed last year by #2941 (but comments on the PR seem to suggest it didn't really work before anyway). I think one of the major problems we had with the feature was the impossibility to distinguish a repo name [a-f0-9]+ from an image ID. If we want to re-introduce the feature we'd want to fix this (maybe by adding an explicit parameter when looking for an image ID, e.g. docker pull --by-id afe4dd1c8b...)
@titanous I think this would work best with having a flag like --by-id (or even just --id, since this is in the context of docker pull), but a flag needs @shykes approval. @titanous did you have a PR working for this?
another thought on this workflow, if you are pulling an ID of a layer, that is transport independent. But those things are tied together presently. So if you have an internal registry, and need to pull hash 'deadbeef', you would not do docker pull --id my-registry.internal.lan:5000/deadbeef .. or would you? @shykes thoughts?
The registry currently supports this, but it is limited to a namespace that the ID has been known to exist within previously. For example, downloading ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9 in the context of hello-world is possible, but not in the context of debian (since it's an old :latest tag of hello-world, but has never been pushed to debian).
Activity
gabrtv commentedon Feb 13, 2014
+1, though this also needs to support private registries along the lines of:
docker pull localhost:5000/<id>.bkcsoft commentedon Feb 13, 2014
+1
thaJeztah commentedon Feb 22, 2014
+1
discordianfish commentedon Apr 28, 2014
I was under the impression that this is possible, imo this is necessary for proper automating rollout and rollback seriously 👍
StarvingMarvin commentedon Apr 28, 2014
I can relate to this. We ended up implementing a system where we automatically tag images with it's id. Of course it is only a convection, not a guarantee because nobody is stopping you to reuse the tag... Which leads me to another point: the term 'tag' is misleading, as it behaves more like a branch head, rather than tag...
shin- commentedon Apr 28, 2014
It was removed last year by #2941 (but comments on the PR seem to suggest it didn't really work before anyway). I think one of the major problems we had with the feature was the impossibility to distinguish a repo name
[a-f0-9]+from an image ID. If we want to re-introduce the feature we'd want to fix this (maybe by adding an explicit parameter when looking for an image ID, e.g.docker pull --by-id afe4dd1c8b...)titanous commentedon Apr 28, 2014
Totally fine with using a separate parameter (Flynn only uses the Docker API).
kgoudeaux commentedon May 14, 2014
+1 for this. However I would also like to query what repository an image id came from (and what tags are associated).
vbatts commentedon Jun 1, 2014
@titanous I think this would work best with having a flag like
--by-id(or even just--id, since this is in the context ofdocker pull), but a flag needs @shykes approval.@titanous did you have a PR working for this?
titanous commentedon Jun 1, 2014
@vbatts I do not have PR for this.
nikicat commentedon Jun 5, 2014
👍
vbatts commentedon Jun 17, 2014
another thought on this workflow, if you are pulling an ID of a layer, that is transport independent. But those things are tied together presently. So if you have an internal registry, and need to pull hash 'deadbeef', you would not do
docker pull --id my-registry.internal.lan:5000/deadbeef.. or would you? @shykes thoughts?ejholmes commentedon Jan 27, 2015
+1
tianon commentedon Jan 27, 2015
The registry currently supports this, but it is limited to a namespace that the ID has been known to exist within previously. For example, downloading
ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9in the context ofhello-worldis possible, but not in the context ofdebian(since it's an old:latesttag ofhello-world, but has never been pushed todebian).termie commentedon Mar 10, 2015
+1
vbatts commentedon Mar 10, 2015
all, please see #11109 for an implementation that can satisfy this.
jessfraz commentedon Mar 20, 2015
closing as #11109 is merged and will be in 1.6!