Unable to replicate to local Harbor registry

We are trying to replicate some images from the official docker.elastic.co into our local Harbor registry. But we get a 401 unauthorized message from docker.elastic.co.

failed to fetch artifacts: failed to fetch artifacts: failed to list artifacts of repository elasticsearch/elasticsearch-oss: http status code: 401, body: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"elasticsearch/elasticsearch-oss","Action":"pull"}]}]}

Running a common docker pull from the command line works fine. But there seems to be additional configuration required to obtain more detailed manifests from the repo.

$ curl -I https://docker.elastic.co/v2/elasticsearch/elasticsearch-oss/manifests/6.8.13
HTTP/2 401 
server: nginx
date: Mon, 14 Jun 2021 15:54:37 GMT
content-type: application/json; charset=utf-8
content-length: 174
docker-distribution-api-version: registry/2.0
www-authenticate: Bearer realm="https://docker-auth.elastic.co/auth",service="token-service",scope="repository:elasticsearch/elasticsearch-oss:pull"
x-content-type-options: nosniff
strict-transport-security: max-age=15724800; includeSubDomains;

Are there any instructions to authenticate? Should we expect this endpoint to be public as well?

Best regards.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.