Skip to content

Allow images to be pulled by ID #4106

Closed

Description

@titanous

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.

Activity

  1. gabrtv commented on Feb 13, 2014

    @gabrtv

    +1, though this also needs to support private registries along the lines of: docker pull localhost:5000/<id>.

  2. bkcsoft commented on Feb 13, 2014

    @bkcsoft
    Contributor

    +1

  3. thaJeztah commented on Feb 22, 2014

    @thaJeztah
    Member

    +1

  4. discordianfish commented on Apr 28, 2014

    @discordianfish
    Contributor

    I was under the impression that this is possible, imo this is necessary for proper automating rollout and rollback seriously 👍

  5. StarvingMarvin commented on Apr 28, 2014

    @StarvingMarvin

    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...

  6. shin- commented on Apr 28, 2014

    @shin-
    Contributor

    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...)

  7. titanous commented on Apr 28, 2014

    @titanous
    ContributorAuthor

    Totally fine with using a separate parameter (Flynn only uses the Docker API).

  8. kgoudeaux commented on May 14, 2014

    @kgoudeaux

    +1 for this. However I would also like to query what repository an image id came from (and what tags are associated).

  9. self-assigned this
    on Jun 1, 2014
  10. vbatts commented on Jun 1, 2014

    @vbatts
    Contributor

    @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?

  11. titanous commented on Jun 1, 2014

    @titanous
    ContributorAuthor

    @vbatts I do not have PR for this.

  12. nikicat commented on Jun 5, 2014

    @nikicat

    👍

  13. vbatts commented on Jun 17, 2014

    @vbatts
    Contributor

    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?

  14. ejholmes commented on Jan 27, 2015

    @ejholmes

    +1

  15. tianon commented on Jan 27, 2015

    @tianon
    Member

    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).

  16. added
    kind/enhancement
    on Feb 28, 2015
  17. termie commented on Mar 10, 2015

    @termie
    Contributor

    +1

  18. vbatts commented on Mar 10, 2015

    @vbatts
    Contributor

    all, please see #11109 for an implementation that can satisfy this.

  19. jessfraz commented on Mar 20, 2015

    @jessfraz
    Contributor

    closing as #11109 is merged and will be in 1.6!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    exp/expertkind/enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions