# Access local port inside Docker

**URL:** <https://discuss.huggingface.co/t/access-local-port-inside-docker/123742>\
**Category:** Beginners\
**Created:** [November 16, 2024, 3:07pm UTC](https://discuss.huggingface.co/t/access-local-port-inside-docker/123742 "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](https://discuss.huggingface.co/u/NileshMPrabhu)\
**Post date:** [November 16, 2024, 3:07pm UTC](https://discuss.huggingface.co/t/access-local-port-inside-docker/123742/1 "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](https://discuss.huggingface.co/u/John6666)\
**Post date:** [November 17, 2024, 2:00am UTC](https://discuss.huggingface.co/t/access-local-port-inside-docker/123742/2 "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`.
