You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Adam B (JIRA)" <ji...@apache.org> on 2017/04/18 01:12:41 UTC

[jira] [Commented] (MESOS-7272) Unified containerizer does not support docker registry version < 2.3.

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

Adam B commented on MESOS-7272:
-------------------------------

Any progress here [~gilbert], [~jieyu]? Looks like it's marked as a Blocker for 1.3.0/1.2.1/1.1.2, so we'd like to land it this week (I see it's in the current sprint).

> Unified containerizer does not support docker registry version < 2.3.
> ---------------------------------------------------------------------
>
>                 Key: MESOS-7272
>                 URL: https://issues.apache.org/jira/browse/MESOS-7272
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization, docker
>    Affects Versions: 1.0.2, 1.1.1, 1.2.0
>            Reporter: depay
>            Assignee: Gilbert Song
>            Priority: Blocker
>              Labels: easyfix
>
> in file `src/uri/fetchers/docker.cpp`
> ```
>     Option<string> contentType = response.headers.get("Content-Type");  
>         if (contentType.isSome() &&  
>             !strings::startsWith(  
>                 contentType.get(),  
>                 "application/vnd.docker.distribution.manifest.v1")) {  
>           return Failure(  
>               "Unsupported manifest MIME type: " + contentType.get());  
>         }  
> ```
> Docker fetcher check the contentType strictly, while docker registry with version < 2.3 returns manifests with contentType `application/json`, that leading failure like `E0321 13:27:27.572402 40370 slave.cpp:4650] Container 'xxx' for executor 'xxx' of framework xxx failed to start: Unsupported manifest MIME type: application/json; charset=utf-8`.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)