jfrog / artifactory-docker-examples

Examples for using Artifactory Docker distribution in various environments
https://www.jfrog.com/artifactory/
Apache License 2.0
330 stars 299 forks source link

Unable to list tags with docker-compose deployed Artifactory (embedded Tomcat) #168

Open SamD opened 5 years ago

SamD commented 5 years ago

I'm able to list using catalog e.g.

curl -X GET "http://docker.artifactory:8081/artifactory/api/docker/docker-local/v2/_catalog" -H "X-JFrog-Art-Api: ...."
{
  "repositories" : [ "docker-local/client", "docker-local/db", "docker-local/server" ]
}

However, trying to list tags I keep getting


curl -X GET "http://docker.artifactory:8081/artifactory/api/docker/v2/docker-local/client/tags/list" -H "X-JFrog-Art-Api: ...."
{
  "errors" : [ {
    "status" : 400,
    "message" : "Unsupported docker repository request for 'v2'"
  } ]
}```

Is there something missing, I've also tried just client for example without the docker-local
matankatz commented 5 years ago

Hi SamD Please note the wrong url: You sent:

cur -X GET "http://docker.artifactory:8081/artifactory/api/docker/v2/docker-local/client/tags/list" -H "X-JFrog-Art-Api: ...."

While it should be:

curl -X GET "http://docker.artifactory:8081/artifactory/api/docker/docker-local/v2/client/tags/list" -H "X-JFrog-Art-Api: ...."

(v2 and repository name are misplaced)

SamD commented 5 years ago

Ok thanks, hmmm I thought I had found the sample I used from your docs. as a result of a Google search, perhaps not.

SamD commented 5 years ago

Hmmm still unable to get this work, I keep getting either it is unable to locate the repository name or not found

Is there some specific security setting I might be missing for the api access, I am using the generated api token for the admin user