Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7272

Unified containerizer does not support docker registry version < 2.3.

    XMLWordPrintableJSON

Details

    • Mesosphere Sprint 53, Mesosphere Sprint 54, Mesosphere Sprint 55
    • 2

    Description

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

      Attachments

        Activity

          People

            gilbert Gilbert Song
            depay depay
            Jie Yu Jie Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: