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

Guangya Liu commented on MESOS-2824:
------------------------------------

[~jieyu] [~idownes] [~xujyan] what about introducing following endpoint for the 
pre-fetching images?

Fetching Images
{code}
$ curl -d images="[{
         {
           "name" : "redis",
           "type" : "docker"
         },
         {
           "name" : "alpine",
           "type" : "docker"
         },
       }]"
       -X POST http://<slave-ip>:<port>/images
{code}

Querying Cached Images
{code}
curl -X GET http://<slave-ip>:<port>/images
curl -X GET http://<slave-ip>:<port>/images?filter=xxx
{code}

Delete Cached Images
{code}
$ curl -X DELETE http://<slave-ip>:<port>/images/redis
{code}

> Support pre-fetching images
> ---------------------------
>
>                 Key: MESOS-2824
>                 URL: https://issues.apache.org/jira/browse/MESOS-2824
>             Project: Mesos
>          Issue Type: Improvement
>          Components: isolation
>    Affects Versions: 0.23.0
>            Reporter: Ian Downes
>            Assignee: Guangya Liu
>            Priority: Minor
>              Labels: mesosphere, twitter
>
> Default container images can be specified with the --default_container_info 
> flag to the slave. This may be a large image that will take a long time to 
> initially fetch/hash/extract when the first container is provisioned. Add 
> optional support to start fetching the image when the slave starts and 
> consider not registering until the fetch is complete.
> To extend that, we should support an operator endpoint so that operators can 
> specify images to pre-fetch.



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

Reply via email to