# Is there a way to configure the index host using pinecone-local docker image?

**URL:** <https://community.pinecone.io/t/is-there-a-way-to-configure-the-index-host-using-pinecone-local-docker-image/7679>\
**Category:** Support\
**Created:** [March 12, 2025, 9:44pm UTC](https://community.pinecone.io/t/is-there-a-way-to-configure-the-index-host-using-pinecone-local-docker-image/7679 "2025-03-12T21:44:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddu.melendez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/eddu.melendez/32/3972_2.png) [@eddu.melendez](https://community.pinecone.io/u/eddu.melendez)\
**Post date:** [March 12, 2025, 9:44pm UTC](https://community.pinecone.io/t/is-there-a-way-to-configure-the-index-host-using-pinecone-local-docker-image/7679/1 "2025-03-12T21:44:34Z")

</div>

[Describe index](https://docs.pinecone.io/reference/api/2025-01/control-plane/describe_index) response has a host value that is used in the [docs](https://docs.pinecone.io/guides/operations/local-development#2-develop-your-app). According to the docs, only java and c# examples have not direct access to this value to perform the upsert operation.

Testcontainers is a project that allows run containers programmatically and provides an implementation using pinecone-local image using random ports. However, after creating the index successfully via the random port for 5080, the client fails trying to reach out 5081 because a new PineconeConnection is created [1] using the index’s host [2].

Can we improve the pinecone-local docker image to work well with random ports?

P.S: I was sharing more links but was limited to only post 2.

---

<div class="post-metadata">

**Author:** ![rohan.s](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/rohan.s/32/1687_2.png) [@rohan.s](https://community.pinecone.io/u/rohan.s)\
**Post date:** [March 17, 2025, 7:55pm UTC](https://community.pinecone.io/t/is-there-a-way-to-configure-the-index-host-using-pinecone-local-docker-image/7679/2 "2025-03-17T19:55:11Z")

</div>

Thank you for reporting the issue. Is this the right understanding of the problem statement:  
To create a gRPC connection by passing a host which is fetched by describeIndex call and upsert data into it. So essentially have a single [Pinecone](https://github.com/pinecone-io/pinecone-java-client/blob/main/src/main/java/io/pinecone/clients/Pinecone.java) object but multiple Index objects using getIndexConnection() per index and target each index by host?

---

<div class="post-metadata">

**Author:** ![jocelyn](https://sea2.discourse-cdn.com/flex020/user_avatar/community.pinecone.io/jocelyn/32/1653_2.png) [@jocelyn](https://community.pinecone.io/u/jocelyn)\
**Post date:** [March 17, 2025, 8:15pm UTC](https://community.pinecone.io/t/is-there-a-way-to-configure-the-index-host-using-pinecone-local-docker-image/7679/3 "2025-03-17T20:15:54Z")

</div>

Hi @eddu.melendez quick note about the links. This is a spam setting, however you can always use `Preformatted text` to write out a URL once you’re past that max, it just won’t be clickable
