# Change docker registry and repo path

**URL:** <https://discuss.elastic.co/t/change-docker-registry-and-repo-path/206422>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [November 4, 2019, 2:38pm UTC](https://discuss.elastic.co/t/change-docker-registry-and-repo-path/206422 "2019-11-04T14:38:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![logger](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@logger](https://discuss.elastic.co/u/logger)\
**Post date:** [November 4, 2019, 2:38pm UTC](https://discuss.elastic.co/t/change-docker-registry-and-repo-path/206422/1 "2019-11-04T14:38:52Z")

</div>

Hi there,

we have a satellite server for our internal docker registry. When I setup ECE I can change the registry server but not the repository path.

Unfortunatley we have a static path and cannot change it.

```auto
satellite.company-registry.de:5000/company-name-elastic_cloud_enterprise-cloud-assets_elasticsearch:7.4.1-1

```

But the Syntax of the Installation script is

```auto
docker pull ${DOCKER_REGISTRY}/${ECE_DOCKER_REPOSITORY}/elastic-cloud-enterprise:${CLOUD_ENTERPRISE_VERSION}

```

As you can see we cannot combine this.  
Is there another way or another config where I can change this.  
Or do I have to change the Script within?

Greetings  
Malte

---

<div class="post-metadata">

**Author:** ![logger](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@logger](https://discuss.elastic.co/u/logger)\
**Post date:** [November 4, 2019, 3:10pm UTC](https://discuss.elastic.co/t/change-docker-registry-and-repo-path/206422/2 "2019-11-04T15:10:07Z")

</div>

If I change the elastic-cloud-enterprise.sh manually I get an Error:

```auto
Errors have caused Elastic Cloud Enterprise installation to fail
404 Client Error: Not Found ("b'No such image: satellite6.lan.company-name.de:5000/company-name-elastic_cloud_enterprise-cloud-enterprise/elastic-cloud-enterprise:2.4.1'")
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/docker/client.py", line 150, in _raise_for_status
    response.raise_for_status()
  File "/usr/lib/python3.5/site-packages/requests/models.py", line 929, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localunixsocket/v1.23/containers/create?name=elastic-cloud-enterprise-bootstrap-2.4.1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/elastic_cloud_apps/bootstrap-initiator/initiator.py", line 85, in <module>
    bootstrap_container_id = docker.run_bootstrap_container(bootstrap_properties)
  File "/elastic_cloud_apps/bootstrap-initiator/bootstrap_initiator/docker.py", line 53, in run_bootstrap_container
    'containerhost': bootstrap_properties['RUNNER_HOST_IP']
  File "/usr/lib/python3.5/site-packages/docker/api/container.py", line 120, in create_container
    return self.create_container_from_config(config, name)
  File "/usr/lib/python3.5/site-packages/docker/api/container.py", line 131, in create_container_from_config
    return self._result(res, True)
  File "/usr/lib/python3.5/site-packages/docker/client.py", line 158, in _result
    self._raise_for_status(response)
  File "/usr/lib/python3.5/site-packages/docker/client.py", line 153, in _raise_for_status
    raise errors.NotFound(e, response, explanation=explanation)
docker.errors.NotFound: 404 Client Error: Not Found ("b'No such image: satellite6.lan.company-name.de:5000/company-name-elastic_cloud_enterprise-cloud-enterprise/elastic-cloud-enterprise:2.4.1'")

```

Looks like it needs a "slash" before the image name.

Greetings  
Malte

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [November 6, 2019, 3:10pm UTC](https://discuss.elastic.co/t/change-docker-registry-and-repo-path/206422/3 "2019-11-06T15:10:32Z")

</div>

Hi @logger

Unfortunately there is a known issue currently where you cannot change the repo path (the stackpacks are hardcoded to `/cloud-assets`). There is an internal issue tracking this and it should get fixed in a forthcoming minor. In the meantime the only known workaround is to retag images. Sorry about that

Alex

---

<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:** [November 20, 2019, 3:10pm UTC](https://discuss.elastic.co/t/change-docker-registry-and-repo-path/206422/4 "2019-11-20T15:10:33Z")

</div>

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