Getting 302 for the JFrog REST api for listing docker tags.
Documentation:
Usage:
GET /api/docker/{repo-key}/v2/{image name}/tags/list?n=<n from the request>&last=<last tag value from previous response>
My query:
- repo-key - docker-local
- My image name is like -> /eric/com.jfrog/test-app
So myquery is:
Response:
<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.17.5</center>
</body>
</html>
Artifactory API is exposed under
/artifactory/api...
path. At least for my Pro and JCR versions configured with nginx subdomains.Try following paths:
Using general artifactory url:
If you're using subdomain and reverse proxies e.g. image is available at
docker-local.test.com/my-docker-image:latest
than following path should be correct as well:For both cases
/artifactory/api/docker
are always.docker-local
is the name of the repo (local or virtual) andmy-docker-image
is the name of the image. Probably for your path you should replacemy-docker-image
witheric/com.jfrog/test-app
.