You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Jie Yu (JIRA)" <ji...@apache.org> on 2017/05/05 21:58:05 UTC

[jira] [Commented] (MESOS-7427) Registry puller cannot fetch manifests from Amazon ECR: 405 Unsupported.

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

Jie Yu commented on MESOS-7427:
-------------------------------

commit 2cff221131b4d1a4c7fde99be782478cfe76ea2f
Author: Chun-Hung Hsiao <ch...@mesosphere.io>
Date:   Fri May 5 14:55:33 2017 -0700

    Fetching docker image manifests with 'Accept' header.

    Added 'Accept: application/vnd.docker.distribution.manifest.v1+json'
    to the headers of HTTP requests for fetching manifests from any Docker
    registry. Some registry services (e.g., Amazon ECR) check the 'Accept'
    field strictly and reject the requests if it is not specified.

    Review: https://reviews.apache.org/r/58725/

> Registry puller cannot fetch manifests from Amazon ECR: 405 Unsupported.
> ------------------------------------------------------------------------
>
>                 Key: MESOS-7427
>                 URL: https://issues.apache.org/jira/browse/MESOS-7427
>             Project: Mesos
>          Issue Type: Bug
>          Components: containerization
>            Reporter: Chun-Hung Hsiao
>            Assignee: Chun-Hung Hsiao
>             Fix For: 1.3.0
>
>
> When the registry puller is pulling a repository from Amazon ECR, a '405 Unsupported' error occurs when fetching manifests. The error message is as follows:
> {code}
> {"errors":[{"code":"UNSUPPORTED","message":"Invalid parameter at 'acceptedMediaTypes' failed to satisfy constraint: 'Member must satisfy constraint: [Member must satisfy regular expression pattern: \\w{1,127}\\/[-+.\\w]{1,127}]'"}]}}
> {code}
> The reason is that Amazon ECR checks the 'Accept' header strictly, which is not provided when fetching the manifests. See the following link for more details:
> https://forums.aws.amazon.com/thread.jspa?threadID=254382



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