# Access local port inside Docker

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccess-local-port-inside-docker%2F123742%3E%5C
**Category:** Beginners\
**Created:** [November 16, 2024, 3:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccess-local-port-inside-docker%2F123742 "2024-11-16T15:07:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NileshMPrabhu](https://avatars.discourse-cdn.com/v4/letter/n/eb9ed0/32.png) [@NileshMPrabhu](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FNileshMPrabhu)%5C
**Post date:** [November 16, 2024, 3:07pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccess-local-port-inside-docker%2F123742%2F1 "2024-11-16T15:07:06Z")

</div>

I created an app that access Ollama running on port 11434. Since DockerFile does not allow to publish i.e. map port, how can I access the Ollama url running inside Docker so that I can verify that its running correctly?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [November 17, 2024, 2:00am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccess-local-port-inside-docker%2F123742%2F2 "2024-11-17T02:00:36Z")

</div>

This is all I know about it.

> **[Spaces Configuration Reference](https://huggingface.co/docs/hub/spaces-config-reference)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **`app_port`** : _int_  
> Port on which your application is running. Used only if `sdk` is `docker`. Default port is `7860`.
