[ 
https://issues.apache.org/jira/browse/MESOS-1886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165641#comment-14165641
 ] 

Timothy Chen commented on MESOS-1886:
-------------------------------------

Thanks for creating the ticket, great to start discussing about this here!
I think I'm personally more in favor of having a explicit option that can be 
set on DockerInfo, that we force a pull each run instead of trying to do 
implications with the image name, since semantically in docker the ":latest" 
tag is implied when you don't specify a tag at all.
So I propose we just add a new flag in DockerInfo. Let me know if that will fit 
your need or not.

> Always `docker pull` if explicit ":latest" tag is present
> ---------------------------------------------------------
>
>                 Key: MESOS-1886
>                 URL: https://issues.apache.org/jira/browse/MESOS-1886
>             Project: Mesos
>          Issue Type: Improvement
>          Components: containerization
>    Affects Versions: 0.20.1
>            Reporter: Chris Heller
>            Priority: Minor
>              Labels: docker
>
> With 0.20.1 the behavior of a docker container has changed (see MESOS-1762).
> This change brings the docker behavior more in line with that of {{docker 
> run}}.
> I propose,if the image given explicitly has the ":latest" tag, this should 
> signify to mesos that an unconditional `docker pull` should be done on the 
> image... and if it should fail for any reason (i.e. the registry is 
> unavailable) we fall back to the current behavior.
> This would break slightly with the semantics of how the docker command line 
> operates, but the alternative is to require explicit tags on every release -- 
> which is a hinderance when developing a new image, or one must log in to each 
> node and run an explicit `docker pull`.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to