Skip to content

Error "unsupported manifest mediatype: application/json" pulling jfrog-docker-reg2.bintray.io (1.10rc1) #19400

Closed

Description

@jamshid

This is probably an jfrog / artifactory issue, but since it worked in docker 1.9.x maybe something can be done for backwards compatibility.

$ docker pull jfrog-docker-reg2.bintray.io/jfrog/artifactory-oss:4.3.3
Error response from daemon: unsupported manifest mediatype: application/json
$ docker info
Containers: 8
Images: 61
Server Version: 1.10.0-rc1
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.2.0-16-generic
Operating System: Ubuntu 15.10
CPUs: 2
Total Memory: 3.86 GiB
Name: docker110
ID: JKER:Q4EU:JYCI:37P2:TR7B:O4KM:W77J:WJLK:YPS3:JD4G:ZYW5:64LA
WARNING: No swap limit support
Labels:
 provider=digitalocean

Activity

  1. thaJeztah commented on Jan 18, 2016

    @thaJeztah
    Member

    Thanks for reporting, I'll add this to the milestone for now, given that it's a regression from 1.9.x, but we should look into it if it's something that needs fixing in docker or in artifactory

  2. added this to the 1.10.0 milestone on Jan 18, 2016
  3. thaJeztah commented on Jan 18, 2016

    @thaJeztah
    Member

    ping @aaronlehmann I'll assign you to this one, can you check if this is something to be fixed here, or by artifactory?

  4. added
    priority/P1
    on Jan 18, 2016
  5. thaJeztah commented on Jan 18, 2016

    @thaJeztah
    Member

    Prio P1; we need a decision before the release (or a fix)

  6. jamshid commented on Jan 18, 2016

    @jamshid
    ContributorAuthor

    WORKAROUND: if you're blocked by this problem with jfrog artifactory on docker 1.10rc, you can save (not export) the image on a docker 1.9.x:

    $ docker pull jfrog-docker-reg2.bintray.io/jfrog/artifactory-oss:4.3.3
    ...
    $ docker save -o /tmp/art.tar jfrog-docker-reg2.bintray.io/jfrog/artifactory-oss:4.3.3
    ...
    

    then in docker 1.10rc just load the tar:

    $ docker load < /tmp/art.tar
    $ docker images
    ...
    jfrog-docker-reg2.bintray.io/jfrog/artifactory-oss   4.3.3               sha256:901f5        3 weeks ago         442.1 MB
    
  7. aaronlehmann commented on Jan 18, 2016

    @aaronlehmann

    1.10 attempts to handle this case, but it looks like it expects charset=utf-8 in the content type: https://github.com/docker/distribution/blob/master/manifest/schema1/manifest.go#L54

    I will open a PR to make this more flexible.

  8. thaJeztah commented on Jan 18, 2016

    @thaJeztah
    Member

    Thanks for looking into this @aaronlehmann 👍

  9. added a commit that references this issue on Jan 26, 2016
    98ccb46
  10. added a commit that references this issue on Feb 8, 2016
    82ae37b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/distributionpriority/P1

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions