# Unable to replicate to local Harbor registry

**URL:** <https://discuss.elastic.co/t/unable-to-replicate-to-local-harbor-registry/275869>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 14, 2021, 4:00pm UTC](https://discuss.elastic.co/t/unable-to-replicate-to-local-harbor-registry/275869 "2021-06-14T16:00:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulioHM](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/juliohm/32/90283_2.png) [@JulioHM](https://discuss.elastic.co/u/JulioHM)\
**Post date:** [June 14, 2021, 4:00pm UTC](https://discuss.elastic.co/t/unable-to-replicate-to-local-harbor-registry/275869/1 "2021-06-14T16:00:10Z")

</div>

We are trying to replicate some images from the official **[docker.elastic.co](http://docker.elastic.co)** into our local Harbor registry. But we get a 401 unauthorized message from [docker.elastic.co](http://docker.elastic.co).

```auto
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.

```auto
$ 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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2021, 4:01pm UTC](https://discuss.elastic.co/t/unable-to-replicate-to-local-harbor-registry/275869/2 "2021-07-12T16:01:02Z")

</div>

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