How to get the dockerTag label via the Artifactory API?

I am using Artifactory Version 4.16.0 and need to retrieve the Docker Info Label used to tag my image using the Artifactory API.

The label is definitely set as it appears in the Artifactory UI, under the Docker Info panel, in the Label key-value section.

  • Can push docker images to Artifactory, but can't pull
  • Artifactory Docker Registry Setup Issue
  • Jenkinsfile maven plugin inside a docker container
  • Status 405 - docker - artifactory
  • 501 Not Implemented when pushing to Artifactory Docker repository
  • Unable to push windows docker image to Artifactory
  • Using the following API I can see the manifest.json

    curl -uadmin:pass https://artifacts.mycompany.com/artifactory/api/storage/my-docker-dev/my-component/my-image-1.0.0-1498449060

    but this does not contain the Docker Label I am after. I read the documentation, but cannot figure out how I can achieve this.

  • Artifactory docker registry docker image
  • nginx no such file or directory
  • Docker COPY doesn't work
  • Tunnel Connection Failed error when logging into artifactory docker registry
  • Issues with artifactory Docker
  • Artifactory Docker Registry Setup Issue
  • One Solution collect form web for “How to get the dockerTag label via the Artifactory API?”

    The access the build properties, which include the Docker labels, the name of the artefact must be followed by /manifest.json?properties

    e.g.:
    curl -uadmin:pass https://artifacts.my-company.com/artifactory/api/storage/my-docker-dev/my-component/my-image-1.0.0-1498449060/manifest.json?properties

    returns something like

    {
    "properties" : {
    "docker.label.com.my-company.repository.commit.full" : [ "4fb524c0cb2139b15074b348bddb1952fa68deb1" ],
    "docker.label.com.my-company.repository.commit.short" : [ "4fb52" ],
    "docker.manifest" : [ "develop-1.0.0-1498449060" ],
    "docker.manifest.type" : [ "application/vnd.docker.distribution.manifest.v2+json" ],
    "docker.repoName" : [ "my-component" ],
    "sha256" : [ "0c8f855fbd7f6065972eec9a8ca7e48980f19sd3db07c47751bbe17043ddda4d" ]
    },
    "uri" : "https://artifacts.my-company.com/artifactory/api/storage/my-docker-dev/my-component/develop-1.0.0-1498449060/manifest.json"
    }

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.